This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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();
    }
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]