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


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