hlovatt a écrit :
> I haven't tried your example, but most autoboxing is cached so it is
> unusual that a new Boolean is allocated. 
yes most of but not all.
Reflection use codes that is inside the VM and Java code generated or not,
at least the later performs some new instead of using valueOf.
> You are usually safe to
> compare Booleans directly. 
And even if all are 'cached', it's an implementation detail and not a 
part of the spec,
so it's dangerous to rely on that detail.
> You could perhaps be the person who logs
> the bug, in my experience the folks at Sun are pretty responsive re.
> bugs of this nature.
>   
Rémi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to