This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred



------- 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


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