RFR[9] 8160956: Runtime.Version.compareTo/compareToIgnoreOpt problem

Paul Sandoz paul.sandoz at oracle.com
Thu Mar 16 21:52:50 UTC 2017


> On 16 Mar 2017, at 14:33, mark.reinhold at oracle.com wrote:
> 
> 2017/3/16 14:31:21 -0700, pavel.rappo at oracle.com:
>> Exactly:
>> 
>> *
>> * <p>This is a <a href="../lang/doc-files/ValueBased.html">value-based</a>
>> * class; use of identity-sensitive operations (including reference equality
>> * ({@code ==}), identity hash code, or synchronization) on instances of
>> * {@code Optional} may have unpredictable results and should be avoided.
>> *
> 
> An excellent plan.
> 

Yes +1

Paul.


More information about the core-libs-dev mailing list