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

Have use of "var" in 9 and earlier source versions issue a warning for type declarations

    Details

    • Subcomponent:
    • Resolved In Build:
      b01

      Backports

        Description

        When the possibility of "_" being removed from the future set of valid identifiers was determined, javac was updated to issue a warning to that effect in JDK 8. Underscore was removed from the set of valid identifiers as of JDK 9.

        With local variable type inference, the name "var" should be given similar treatment in source versions 9 and earlier.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  darcy Joe Darcy
                  Reporter:
                  darcy Joe Darcy
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: