Strange behaviour with ResourceBundle - SUN vs GCJ?
Martin Egholm Nielsen
martin@egholm-nielsen.dk
Wed Mar 9 10:42:00 GMT 2005
Hi Roman,
>>0
>>1
>>Missing!
>>DONE!
>>>>Whereas when I run with GCJ (not GIJ) I get:
>>>>0
>>1
>>1
>>1
>>... continues, until the app is killed.
>>>>I know that the ResourceBundle class tries to load/find the given
>>resource-bundle in the class "UserLog", but as the constructor is
>>hidden, I don't see why it should be allowed for it to construct an
>>instance?
> Yeah, and why should it construct an instance anyway? AFAIK This should
> be an issue of the class (or better: the ClassLoader) and not of an
> instance. Correct me if I'm wrong.
I see your point there - the question of whether the given class
actually can be used as a ResourceBundle instance should be decided
based on the class and its superclasses - not the instance, no.
> Unfortunatly I have no current version of gcj here to check. At least
> with current CP/JamVM it works, but this is most likely VM-specific and
> not CP-specific.
Oh, then it may have been solved already...
Can a CP hacker confirm this - Michael?!
// Martin
More information about the Java
mailing list