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

XMLWordPrintable

    • b01

        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.

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

                Created:
                Updated:
                Resolved: