Patch: RFC: re-enable duplicate class registration error

Andrew Haley aph@redhat.com
Wed Dec 8 13:53:00 GMT 2004


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.



More information about the Java-patches mailing list