This is the mail archive of the java-prs@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]

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



------- Comment #24 from aph at gcc dot gnu dot org  2005-12-02 17:43 -------
This is great, but an additional test case for dynamic method invocation is
needed.

We need to be able to continue if a class T that contains a method that refers
to a missing class M is initialized.  At that time, the otable slot for class T
that refers to the missing method must be initialized to point to the offset
for  
a method in java.lang.Object that throws NoClassDefFoundError.

This is the proper test case:

class invokeMethod implements Runnable
{
  void notCalledMethod()
  {
        TestClass t = new TestClass();
        t.fail();
  }

  public void run(){
  }
}


-- 


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]