Review Request CR#7118743 : Alternative Hashing for String with Hash-based Maps [private fields]

Vitaly Davidovich vitalyd at
Fri May 25 21:50:06 UTC 2012

This is specific to private fields in inner classes - java allows access to
them from the outer class, but the JVM doesn't so javac generates synthetic
accessor methods for them.  Don't think it's a problem for JIT compiler
though as it should inline them.

Sent from my phone
On May 25, 2012 5:23 PM, "Ulf Zibis" <Ulf.Zibis at> wrote:

> Am 25.05.2012 22:30, schrieb Jeff Hain:
>> Hello.
>>  In HashMap, the class Holder should not declare the static final fields
>>> 'private' because the compiler will generate an accessor in that case,
>> I wasn't aware that making fields private could have a downside
>> (other than making them non-visible).
>> Could you, or anyone, please give (a link to) more info about this?
> I'm interested too.
> -Ulf

More information about the core-libs-dev mailing list