8213718: [TEST] Wrong classname in vmTestbase/nsk/stress/except/except002 and except003
authordholmes
Mon, 12 Nov 2018 16:36:05 -0500
changeset 52496 13f0aac77d60
parent 52495 52be2c714a2f
child 52497 34510f65fb58
8213718: [TEST] Wrong classname in vmTestbase/nsk/stress/except/except002 and except003 Reviewed-by: zgu, jcbeyler
test/hotspot/jtreg/vmTestbase/nsk/stress/except/except002.java
test/hotspot/jtreg/vmTestbase/nsk/stress/except/except003.java
--- a/test/hotspot/jtreg/vmTestbase/nsk/stress/except/except002.java	Mon Nov 12 13:13:00 2018 -0800
+++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/except/except002.java	Mon Nov 12 16:36:05 2018 -0500
@@ -234,8 +234,8 @@
 
         // Check ClassNotFoundException (positive):
         try {
-            trash = Class.forName("nsk.stress.except.except002.except002$Abra$Cadabra"); //   correct - should pass
-//          trash = Class.forName("nsk.stress.except.except002.except002.Abra.Cadabra"); // incorrect - should fail
+            trash = Class.forName("nsk.stress.except.except002$Abra$Cadabra"); //   correct - should pass
+//          trash = Class.forName("nsk.stress.except.except002.Abra.Cadabra"); // incorrect - should fail
             if (TRACE_ON)
                 log[messages++] = "Success: ClassNotFoundException (positive)";
         } catch (ClassNotFoundException cnfe) {
--- a/test/hotspot/jtreg/vmTestbase/nsk/stress/except/except003.java	Mon Nov 12 13:13:00 2018 -0800
+++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/except/except003.java	Mon Nov 12 16:36:05 2018 -0500
@@ -235,8 +235,8 @@
 
         // Check ClassNotFoundException (negative):
         try {
-//          trash = Class.forName("nsk.stress.except.except003.except003$Abra$Cadabra"); //   correct - should pass
-            trash = Class.forName("nsk.stress.except.except003.except003.Abra.Cadabra"); // incorrect - should fail
+//          trash = Class.forName("nsk.stress.except.except003$Abra$Cadabra"); //   correct - should pass
+            trash = Class.forName("nsk.stress.except.except003.Abra.Cadabra"); // incorrect - should fail
             log[messages++] = "Failure: ClassNotFoundException (negative)";
             exitCode = 2;
         } catch (ClassNotFoundException cnfe) {