Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8309512

Test runtime/vthread/RedefineClass.java always passes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: External
    • Icon: P3 P3
    • tbd
    • 21
    • 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.

            lmesnik Leonid Mesnik
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: