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 #5 from thebohemian at gmx dot net  2005-11-05 15:59 -------
Created an attachment (id=10153)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10153&action=view)
preliminary patch - just for review

Here is a first start for a patch that makes access to static methods lazy. The
idea is to find out when the target class is missing and put a pointer to a
generic method which throws a NoClassDefFoundError on execution into the atable
slot.

I post this in the hope to receive comments about the approach. Please ignore
debugging stuff in link.cc - this is not the final patch. :)

One thing however remains to be solved: The function throwing the
NoClassDefFoundError cannot provide the information which class definition is
missing. Is there a function from which I can get the class name the method
belongs to?


-- 


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]