< prev index next >

test/jdk/java/lang/StackWalker/CallerFromMain.java

Print this page
rev 51638 : [mq]: 8210112

*** 22,39 **** */ /* * @test * @bug 8140450 ! * @library /lib/testlibrary ! * @build jdk.testlibrary.* * @summary Test if the getCallerClass method returns empty optional * @run main CallerFromMain exec */ ! import jdk.testlibrary.ProcessTools; ! import jdk.testlibrary.OutputAnalyzer; public class CallerFromMain { private static final StackWalker sw = StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE); public static void main(String[] args) throws Exception { --- 22,38 ---- */ /* * @test * @bug 8140450 ! * @library /test/lib * @summary Test if the getCallerClass method returns empty optional * @run main CallerFromMain exec */ ! import jdk.test.lib.process.ProcessTools; ! import jdk.test.lib.process.OutputAnalyzer; public class CallerFromMain { private static final StackWalker sw = StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE); public static void main(String[] args) throws Exception {
< prev index next >