< prev index next >

test/compiler/jsr292/methodHandleExceptions/p/Treflect.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke

@@ -19,10 +19,11 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  *
  */
+
 package p;
 
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 

@@ -29,13 +30,13 @@
 /**
  * Invokes I.m using reflection.
  */
 public class Treflect {
 
-    public static int test(p.I ii) throws Throwable {
+    public static int test(I ii) throws Throwable {
         int accum = 0;
-        Method m = p.I.class.getMethod("m");
+        Method m = I.class.getMethod("m");
         try {
             for (int j = 0; j < 100000; j++) {
                 Object o = m.invoke(ii);
                 accum += ((Integer) o).intValue();
             }

@@ -43,14 +44,14 @@
             throw ite.getCause();
         }
         return accum;
     }
 
-    public static int test(p.I ii, byte b, char c, short s, int i, long l,
+    public static int test(I ii, byte b, char c, short s, int i, long l,
             Object o1, Object o2, Object o3, Object o4, Object o5, Object o6)
             throws Throwable {
-        Method m = p.I.class.getMethod("m", Byte.TYPE, Character.TYPE,
+        Method m = I.class.getMethod("m", Byte.TYPE, Character.TYPE,
                 Short.TYPE, Integer.TYPE, Long.TYPE,
                 Object.class, Object.class, Object.class,
                 Object.class, Object.class, Object.class);
         int accum = 0;
         try {
< prev index next >