--- old/src/java.base/share/classes/java/lang/Double.java 2017-04-17 16:13:45.062201351 -0400 +++ new/src/java.base/share/classes/java/lang/Double.java 2017-04-17 16:13:44.878199585 -0400 @@ -25,6 +25,9 @@ package java.lang; +import java.lang.invoke.Constable; +import java.lang.invoke.MethodHandles; + import jdk.internal.math.FloatingDecimal; import jdk.internal.math.DoubleConsts; import jdk.internal.HotSpotIntrinsicCandidate; @@ -46,7 +49,7 @@ * @author Joseph D. Darcy * @since 1.0 */ -public final class Double extends Number implements Comparable { +public final class Double extends Number implements Comparable, Constable { /** * A constant holding the positive infinity of type * {@code double}. It is equal to the value returned by @@ -1066,6 +1069,11 @@ return Math.min(a, b); } + @Override + public Double resolveConstant(MethodHandles.Lookup lookup) { + return this; + } + /** use serialVersionUID from JDK 1.0.2 for interoperability */ private static final long serialVersionUID = -9172774392245257468L; }