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

javac crashes with -Xjcov and union types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 7, 8, 9
    • tools
    • b38
    • Verified

        Liam Miller-Cushon reports:

        "I'm seeing crashes with -Xjcov enabled while compiling code with union types. This seems to affect javac 7 through 9. I've attached a possible fix, and a jtreg test for the crash.

        Repro:

        === Test.java ===
        class Test {
          void m() {
            try {
              return;
            } catch (IllegalStateException | IllegalArgumentException e) {
            }
          }
        }
        =="

        See http://mail.openjdk.java.net/pipermail/compiler-dev/2014-September/009014.html for a proposed fix and a test

              jfranck Joel Borggrén-Franck (Inactive)
              jfranck Joel Borggrén-Franck (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: