Test runtime/vthread/RedefineClass.java always passes

XMLWordPrintable

    • Type: Bug
    • Resolution: External
    • Priority: P3
    • tbd
    • Affects Version/s: 21
    • Component/s: hotspot

      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.

            Assignee:
            Leonid Mesnik
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: