9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 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 /* 25 * @test 26 * @run testng/othervm -XX:+EnableMVT -Dvalhalla.enablePoolPatches=true UnreflectWithersTest 27 */ 28 29 import jdk.experimental.value.ValueType; 30 import jvm.internal.value.ValueCapableClass; 31 import org.testng.annotations.Test; 32 33 import java.lang.invoke.MethodHandle; 34 import java.lang.invoke.MethodHandles; 35 import java.lang.reflect.Field; 36 import java.util.Arrays; 37 import java.util.Comparator; 38 39 import static org.testng.Assert.assertEquals; 40 41 @Test 42 public class UnreflectWithersTest { 43 44 @ValueCapableClass 45 static final class H { 46 final boolean f1; 47 final byte f2; 48 final short f3; 49 final char f4; 50 final int f5; | 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 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 /* 25 * @test 26 * @run testng/othervm -XX:+EnableMVT -Dvalhalla.enablePoolPatches=true UnreflectWithersTest 27 */ 28 29 import jdk.incubator.mvt.ValueType; 30 import jdk.incubator.mvt.ValueCapableClass; 31 import org.testng.annotations.Test; 32 33 import java.lang.invoke.MethodHandle; 34 import java.lang.invoke.MethodHandles; 35 import java.lang.reflect.Field; 36 import java.util.Arrays; 37 import java.util.Comparator; 38 39 import static org.testng.Assert.assertEquals; 40 41 @Test 42 public class UnreflectWithersTest { 43 44 @ValueCapableClass 45 static final class H { 46 final boolean f1; 47 final byte f2; 48 final short f3; 49 final char f4; 50 final int f5; |