-
Bug
-
Resolution: External
-
P3
-
21
The main method of the test does:
public static void main(String[] args) throws Exception {
Thread main = Thread.ofVirtual().name("test").start(RedefineClass::main);
main.join();
}
so any exceptions from executing the main() method occur in the virtual thread and have no affect on the main thread, so the test always reports successful completion even if it actually failed.
public static void main(String[] args) throws Exception {
Thread main = Thread.ofVirtual().name("test").start(RedefineClass::main);
main.join();
}
so any exceptions from executing the main() method occur in the virtual thread and have no affect on the main thread, so the test always reports successful completion even if it actually failed.
- relates to
-
CODETOOLS-7903526 jtreg should handle all exceptions
-
- New
-