Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903526

jtreg should handle all exceptions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      Currently, jtreg executes test in MainThreadGroup and check uncaught exceptions for this group. So it handle all exceptions if test doesn't create new thread groups.
      However, the virtual threads don't belong to MainThreadGroup and jtreg silently ignore all exceptions throw by virtual threads.

      It might be possible to manually check exceptions for any virtual thread in each tests. However, it would be better to improve jtreg to set and check global exception handler.

      See example of such issue:
      https://bugs.openjdk.org/browse/JDK-8309512

            Unassigned Unassigned
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: