This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: RFC: re-enable duplicate class registration error
- From: Andrew Haley <aph at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Wed, 8 Dec 2004 09:35:41 +0000
- Subject: Re: Patch: RFC: re-enable duplicate class registration error
- References: <m3mzwpc0tc.fsf@localhost.localdomain>
Tom Tromey writes:
> The duplicate class registration error was optimistically disabled
> on the trunk. What this means in practice is that a duplicate class
> registration results in a libgcj hang.
>
> I think it is friendlier to get the error. I propose we re-enable it
> as appended. Comments?
>
>
> I regularly get duplicate registration problems whenever I fail to set
> library_control=never. Our current setup is pretty unfriendly if you
> want to have multiple versions of libgcj installed at once. Two
> months ago would have been a good time to solve this :-(
>
> Tom
>
> Index: ChangeLog
> from Tom Tromey <tromey@redhat.com>
>
> * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault):
> Re-enable duplicate class registration error.
The previous problem was that this error was being triggered
inapropriately when the same class was loaded in multiple class loader
contexts. We need to make sure that this inappropriate triggering no
longer occurs.
Andrew.