hg: jdk/jdk10: 8189146: Have use of "var" in 9 and earlier source versions issue a warning for type declarations

joe.darcy at oracle.com joe.darcy at oracle.com
Wed Jan 17 01:31:30 UTC 2018


Changeset: 9cf44c40aa35
Author:    darcy
Date:      2018-01-16 17:27 -0800
URL:       http://hg.openjdk.java.net/jdk/jdk10/rev/9cf44c40aa35

8189146: Have use of "var" in 9 and earlier source versions issue a warning for type declarations
Reviewed-by: mcimadamore, jjg

! src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/langtools/tools/javac/diags/examples/FutureVarNotAllowed.java
! test/langtools/tools/javac/lvti/ParserTest.java
! test/langtools/tools/javac/lvti/ParserTest.out
+ test/langtools/tools/javac/lvti/ParserTest9.out



More information about the jdk-changes mailing list