From: Godmar Back (gback@cs.utah.edu)
Date: Thu Feb 11 1999 - 11:51:10 EST
>
> Alexandre Oliva writes:
> > > Kaffe outputs a length of 106, JDK 1.1 of 108, but 1.2 outputs 106
> > > like Kaffe.
> >
> > Looks like they've fixed a bug in their implementation. Aren't
> > Strings in the Constant Table supposed to be interned by default? Or
> > it's just that I didn't really understand the interning difference?
>
> Yes, Strings that are constants in a class file must always ==
> their intern'ed value. Check out InternHog.java for example.
>
The discrepancy did not come about because of strings that are constants.
It was because of a string obtained through class.getName() or some such,
if I'm not mistaken.
In any event, it doesn't make a difference as far as compatibility
goes, I think.
- Godmar
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:58:05 EDT