This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Small note [Fwd: troubles with defineClass and Binary Compatibility on ARM-Linux]
- From: Tom Tromey <tromey at redhat dot com>
- To: Philippe Laporte <philippe dot laporte at gatespacetelematics dot com>
- Cc: GCJ Hackers <java at gcc dot gnu dot org>
- Date: 22 Jun 2006 12:39:39 -0600
- Subject: Re: Small note [Fwd: troubles with defineClass and Binary Compatibility on ARM-Linux]
- References: <1150955664.4163.48.camel@mirl194046.mirl.itri.org.tw>
- Reply-to: tromey at redhat dot com
>>>>> "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