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

Javac should issue a warning for int @A [].class

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: tools

      Description

      Javac currently enforces the rule that .class expressions cannot be annotated in the parser; as such, it will not issue a warning for int @A [].class.

      This needs to be changed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emc Eric Mccorkle
                Reporter:
                emc Eric Mccorkle
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: