This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred
- From: "thebohemian at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Dec 2005 11:52:11 -0000
- Subject: [Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred
- References: <bug-24616-10268@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #26 from thebohemian at gmx dot net 2005-12-05 11:52 -------
Created an attachment (id=10407)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10407&action=view)
updated test setup
Added two more tests:
invokeMethodIndirect1
invokeMethodIndirect2
A new class HelperClassInvokeMethod contains a non-static method which refers
to a missing class and one that doesnt.
In invokeMethodIndirect1 we call the method which does not touch the missing
class. This is done in invokeMethodIndirect2.
Additionaly this method contains some println() statements before and after the
statements that will cause a NoClassDefFoundError.
Andrew suggested that the whole method must fail with that error (when it is
called) but I think the interpreter should execute code as far as possible.
This is reinforced by the successful execution of the println() statements.
On the JDK (as well as gij in interpreted and BC-compiled mode with my linker
patches applied) the invokeMethodIndirect2 test prints: 'fail-0' and then the
NoClassDefFoundError is thrown.
--
thebohemian at gmx dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #10188|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24616