This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: Strange behaviour with ResourceBundle - SUN vs GCJ?


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


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