--- old/hotspot/test/compiler/valhalla/valuetypes/TestBoundValueTypes.java 2017-09-15 12:05:06.000000000 -0700 +++ new/hotspot/test/compiler/valhalla/valuetypes/TestBoundValueTypes.java 2017-09-15 12:05:06.000000000 -0700 @@ -25,12 +25,16 @@ import java.lang.invoke.*; -import jdk.experimental.value.*; + +import jdk.experimental.value.MethodHandleBuilder; +import jdk.incubator.mvt.ValueType; /** * @test * @bug 8185339 * @summary Test correct compilation of MethodHandles with bound value type arguments. + * @modules java.base/jdk.experimental.value + * jdk.incubator.mvt * @compile -XDenableValueTypes ValueCapableClass2.java TestBoundValueTypes.java * @run main/othervm -noverify -XX:+EnableMVT -XX:CompileCommand=compileonly,compiler.valhalla.valuetypes.TestBoundValueTypes::* * -XX:CompileCommand=compileonly,java.lang.invoke.*::* compiler.valhalla.valuetypes.TestBoundValueTypes