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

mark.reinhold at oracle.com mark.reinhold at oracle.com
Thu Mar 16 21:33:12 UTC 2017


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.

- Mark


More information about the core-libs-dev mailing list