This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj 4.1.x issue
- From: Hanno Meyer-Thurow <h dot mth at web dot de>
- To: java at gcc dot gnu dot org
- Date: Thu, 22 Dec 2005 13:45:09 +0100
- Subject: gcj 4.1.x issue
Hi list!
First time I send to this list so please be kind! ;)
I try to build apache-ant 1.6.2 with gcj 4.1.0-20051216 with some patches
from fedora cvs for pr24899 pr25121 pr25432.
The source compiles but executing gij with the class files breaks.
I narrowed down the error to a testcase I would say.
Java file is attached.
# gcj -C DemuxOutputStream.java
# gij -cp . DemuxOutputStream
Exception in thread "main" java.lang.IllegalAccessError: DemuxOutputStream: DemuxOutputStream$BufferInfo.buffer
at DemuxOutputStream.main (DemuxOutputStream.java:18)
Thanks for any help!
Regards,
Hanno
import java.io.ByteArrayOutputStream;
public class DemuxOutputStream {
/**
* A data class to store information about a buffer. Such information
* is stored on a per-thread basis.
*/
private static class BufferInfo {
/**
* The per-thread output stream.
*/
private ByteArrayOutputStream buffer;
}
public static void main (String[] args) {
BufferInfo test = new BufferInfo();
test.buffer = new ByteArrayOutputStream();
}
}