< prev index next >

test/jdk/com/sun/jdi/MethodExitReturnValuesTest.java

Print this page
8198933: Update JDI tests to pass valid URL[]
Reviewed-by: dholmes


  49  * gets the values from these static vars to check for correct
  50  * return values in the MethodExitEvents.
  51  */
  52 
  53 class MethodExitReturnValuesTarg {
  54     // These are the values that will be returned by the methods
  55     static URL[] urls = new URL[1];
  56     public static byte      byteValue = 89;
  57     public static char      charValue = 'x';
  58     public static double    doubleValue = 2.2;
  59     public static float     floatValue = 3.3f;
  60     public static int       intValue = 1;
  61     public static long      longValue = Long.MAX_VALUE;
  62     public static short     shortValue = 8;
  63     public static boolean   booleanValue = false;
  64 
  65     public static Class       classValue = Object.class;
  66     public static ClassLoader classLoaderValue;
  67     {
  68         try {
  69             urls[0] = new URL("hi there");
  70         } catch (java.net.MalformedURLException ee) {

  71         }
  72         classLoaderValue = new URLClassLoader(urls);
  73     }
  74 
  75     public static Thread      threadValue;
  76     public static ThreadGroup threadGroupValue;
  77     public static String      stringValue = "abc";
  78     public static int[]       intArrayValue = new int[] {1, 2, 3};
  79 
  80     public static MethodExitReturnValuesTarg  objectValue =
  81         new MethodExitReturnValuesTarg();
  82     public String ivar = stringValue;
  83 
  84     // arrays to be used in calls to native methods Array.get...(....)
  85     public static byte[]    arrByte      = new byte[]    {byteValue};
  86     public static char[]    arrChar      = new char[]    {charValue};
  87     public static double[]  arrDouble    = new double[]  {doubleValue};
  88     public static float[]   arrFloat     = new float[]   {floatValue};
  89     public static int[]     arrInt       = new int[]     {intValue};
  90     public static long[]    arrLong      = new long[]    {longValue};




  49  * gets the values from these static vars to check for correct
  50  * return values in the MethodExitEvents.
  51  */
  52 
  53 class MethodExitReturnValuesTarg {
  54     // These are the values that will be returned by the methods
  55     static URL[] urls = new URL[1];
  56     public static byte      byteValue = 89;
  57     public static char      charValue = 'x';
  58     public static double    doubleValue = 2.2;
  59     public static float     floatValue = 3.3f;
  60     public static int       intValue = 1;
  61     public static long      longValue = Long.MAX_VALUE;
  62     public static short     shortValue = 8;
  63     public static boolean   booleanValue = false;
  64 
  65     public static Class       classValue = Object.class;
  66     public static ClassLoader classLoaderValue;
  67     {
  68         try {
  69             urls[0] = new URL("file:/foo");
  70         } catch (java.net.MalformedURLException ex) {
  71             throw new AssertionError(ex);
  72         }
  73         classLoaderValue = new URLClassLoader(urls);
  74     }
  75 
  76     public static Thread      threadValue;
  77     public static ThreadGroup threadGroupValue;
  78     public static String      stringValue = "abc";
  79     public static int[]       intArrayValue = new int[] {1, 2, 3};
  80 
  81     public static MethodExitReturnValuesTarg  objectValue =
  82         new MethodExitReturnValuesTarg();
  83     public String ivar = stringValue;
  84 
  85     // arrays to be used in calls to native methods Array.get...(....)
  86     public static byte[]    arrByte      = new byte[]    {byteValue};
  87     public static char[]    arrChar      = new char[]    {charValue};
  88     public static double[]  arrDouble    = new double[]  {doubleValue};
  89     public static float[]   arrFloat     = new float[]   {floatValue};
  90     public static int[]     arrInt       = new int[]     {intValue};
  91     public static long[]    arrLong      = new long[]    {longValue};


< prev index next >