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

Define "future" lint category

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 10
    • Fix Version/s: tbd
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Understanding:
      Fix Understood

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: