Define "future" lint category

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 10
    • Component/s: 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.

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

              Created:
              Updated: