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 Nov 2005 14:57:08 -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 #4 from thebohemian at gmx dot net 2005-11-05 14:57 -------
By further inspecting the problem I got the impression that gcj's approach of
linking is flawed. As I understand it gcj does linking-on-initialization but
for the java language, being built-around the idea of late binding, it would be
better if gcj does the linking step when a particular entity (field, method) is
used for the first time.
That could mean that we should fill in the atables with the address to a
certain linkMe() function which then replaces itself if this succeeds or throws
an Error (NoClassDefFoundError, NoSuchMethodError or NoSuchFieldError).
Comments?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24616