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

type annotation on union type in mulicatch crashes javac

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8
    • Component/s: tools
    • Subcomponent:
    • Verification:
      Not verified

      Description

      A type annotation on the 2nd type in a mulicatch with union type crashes javac.
      ....
      catch(E1 | @A E2 e) {} // boom
      ...

        Attachments

          Activity

            People

            • Assignee:
              ssides Steve Sides
              Reporter:
              ssides Steve Sides
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: