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]

Re: Small note [Fwd: troubles with defineClass and Binary Compatibility on ARM-Linux]


>>>>> "Philippe" == Philippe Laporte <philippe.laporte@gatespacetelematics.com> writes:

Philippe> for bundles:
Philippe> [Loaded (bytecode) org.knopflerfish.bundle.log.LogConfigImpl from (null
Philippe> <no certificates>)]
Philippe> So all is happy on x86.

On x86 in this case you are loading bytecode...

Philippe> Now on ARM,

Philippe> Caused by: java.lang.NullPointerException
Philippe>    at java.lang.ClassLoader.defineClass(java.lang.String, byte[], int,
Philippe> int) (/usr/lib/libgcj.so.6)

You're hitting:

    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27294

This is fixed on trunk -- there you would get a message about loading
bytecode without the interpreter being available.

The problem is as Andrew said -- no one has written the libffi closure
API for ARM, so the interpreter is not available.  This means that if
your class is not in the class cache, you'll get an exception.

Tom


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