It's quite popular scenario for test when two different classes are executed in serial.
Like:
@run othervm -Xloggc:out.log Test
@run CheckLog out.log
currently jtreg doesn't allow to define two classes in a single java source:
jtreg runs only public classes and doesn't recognize inner classes.
It would be great if one was able to write like:
/*
* @test
* @run othervm -Xloggc:out.log Test.Run
* @run Test.CheckLog out.log
*/
public class Test {
public static class Run {...}
public static class CheckLog {...}
}
Like:
@run othervm -Xloggc:out.log Test
@run CheckLog out.log
currently jtreg doesn't allow to define two classes in a single java source:
jtreg runs only public classes and doesn't recognize inner classes.
It would be great if one was able to write like:
/*
* @test
* @run othervm -Xloggc:out.log Test.Run
* @run Test.CheckLog out.log
*/
public class Test {
public static class Run {...}
public static class CheckLog {...}
}