18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 import com.sun.tools.classfile.*; 25 import com.sun.tools.classfile.BootstrapMethods_attribute.BootstrapMethodSpecifier; 26 import com.sun.tools.classfile.ConstantPool.CONSTANT_InvokeDynamic_info; 27 import com.sun.tools.classfile.ConstantPool.CONSTANT_MethodHandle_info; 28 29 import java.io.File; 30 31 /* 32 * @test 33 * @bug 8148483 8151516 8151223 34 * @summary Test that StringConcat is working for JDK >= 9 35 * @modules jdk.jdeps/com.sun.tools.classfile 36 * 37 * @clean TestIndyStringConcat* 38 * @compile -source 6 -target 6 TestIndyStringConcat.java 39 * @run main TestIndyStringConcat false 40 * 41 * @clean TestIndyStringConcat* 42 * @compile -source 7 -target 7 TestIndyStringConcat.java 43 * @run main TestIndyStringConcat false 44 * 45 * @clean TestIndyStringConcat* 46 * @compile -source 8 -target 8 TestIndyStringConcat.java 47 * @run main TestIndyStringConcat false 48 * 49 * @clean TestIndyStringConcat* 50 * @compile -XDstringConcat=inline -source 9 -target 9 TestIndyStringConcat.java 51 * @run main TestIndyStringConcat false 52 * 53 * @clean TestIndyStringConcat* 54 * @compile -XDstringConcat=indy -source 9 -target 9 TestIndyStringConcat.java 55 * @run main TestIndyStringConcat true 56 * 57 * @clean TestIndyStringConcat* 58 * @compile -XDstringConcat=indyWithConstants -source 9 -target 9 TestIndyStringConcat.java 59 * @run main TestIndyStringConcat true 60 */ 61 public class TestIndyStringConcat { | 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 import com.sun.tools.classfile.*; 25 import com.sun.tools.classfile.BootstrapMethods_attribute.BootstrapMethodSpecifier; 26 import com.sun.tools.classfile.ConstantPool.CONSTANT_InvokeDynamic_info; 27 import com.sun.tools.classfile.ConstantPool.CONSTANT_MethodHandle_info; 28 29 import java.io.File; 30 31 /* 32 * @test 33 * @bug 8148483 8151516 8151223 34 * @summary Test that StringConcat is working for JDK >= 9 35 * @modules jdk.jdeps/com.sun.tools.classfile 36 * 37 * @clean TestIndyStringConcat* 38 * @compile -source 7 -target 7 TestIndyStringConcat.java 39 * @run main TestIndyStringConcat false 40 * 41 * @clean TestIndyStringConcat* 42 * @compile -source 8 -target 8 TestIndyStringConcat.java 43 * @run main TestIndyStringConcat false 44 * 45 * @clean TestIndyStringConcat* 46 * @compile -XDstringConcat=inline -source 9 -target 9 TestIndyStringConcat.java 47 * @run main TestIndyStringConcat false 48 * 49 * @clean TestIndyStringConcat* 50 * @compile -XDstringConcat=indy -source 9 -target 9 TestIndyStringConcat.java 51 * @run main TestIndyStringConcat true 52 * 53 * @clean TestIndyStringConcat* 54 * @compile -XDstringConcat=indyWithConstants -source 9 -target 9 TestIndyStringConcat.java 55 * @run main TestIndyStringConcat true 56 */ 57 public class TestIndyStringConcat { |