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

Define "future" lint category

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 10
    • tools
    • None
    • Fix Understood

      Various language changes, banning underscore, "_", as an identifier (JDK-8061549) and using "var" to indicate local variable type inference (JDK-8151454), create situations where it is reasonable for javac to warn about source constructs that will be forbidden or questionable in future source versions. This includes when a javac is used to compile to older source versions using -source N or --release N, the latter available as of JDK 9.

      However, it is also reasonable to allow programmers to suppress warnings today about changes that may or will come tomorrow.

      This can be accomplished by defining a "future" lint category, enabled by default, which can be suppressed by SuppressedWarnings.

            vromero Vicente Arturo Romero Zaldivar
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: