This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java 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: java-prs at gcc dot gnu dot org
- Date: 5 Nov 2005 15:59:58 -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 #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