diff --git a/test/tools/javap/T6729471.java b/test/tools/javap/T6729471.java index d55017f0845738adaae0f34b4b5b7a7e8ab9fbc0..00d4860a99de7551334e817f18b990830c5b7901 100644 --- a/test/tools/javap/T6729471.java +++ b/test/tools/javap/T6729471.java @@ -39,6 +39,8 @@ public class T6729471 } void run() { + File testClasses = new File(System.getProperty("test.classes")); + // simple class verify("java.util.Map", "public abstract boolean containsKey(java.lang.Object)"); @@ -48,11 +50,11 @@ public class T6729471 "public abstract K getKey()"); // file name - verify("../classes/tools/javap/T6729471.class", + verify(new File(testClasses, "T6729471.class").getPath(), "public static void main(java.lang.String...)"); // file url - verify("file:../classes/tools/javap/T6729471.class", + verify(new File(testClasses, "T6729471.class").toURI().toString(), "public static void main(java.lang.String...)"); // jar url: rt.jar