hg: jdk/jdk: 3 new changesets

jan.lahoda at oracle.com jan.lahoda at oracle.com
Tue Aug 13 08:32:10 UTC 2019


Changeset: 54a04db114d8
Author:    jlahoda
Date:      2019-08-13 10:27 +0200
URL:       https://hg.openjdk.java.net/jdk/jdk/rev/54a04db114d8

8227922: DocTreeScanner does not dive into AttributeTree.getValue() and LiteralTree.getBody()
Summary: DocTreeScanner.visitAttribute and visitLiteral have to scan through the subnodes of AttributeTree and LiteralTree, respectivelly.
Reviewed-by: vromero

! src/jdk.compiler/share/classes/com/sun/source/util/DocTreeScanner.java
! src/jdk.compiler/share/classes/com/sun/tools/doclint/Checker.java
! test/langtools/tools/javac/tree/AbstractTreeScannerTest.java
! test/langtools/tools/javac/tree/JavacTreeScannerTest.java
+ test/langtools/tools/javac/tree/SourceDocTreeScannerTest.java
! test/langtools/tools/javac/tree/SourceTreeScannerTest.java

Changeset: 447d48371b41
Author:    jlahoda
Date:      2019-08-13 10:27 +0200
URL:       https://hg.openjdk.java.net/jdk/jdk/rev/447d48371b41

8228647: Broken enum produce inconvenient errors and AST
Summary: Improving error recovery for misplace members in enums.
Reviewed-by: vromero

! 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/T4994049/T4994049.java
! test/langtools/tools/javac/T4994049/T4994049.out
+ test/langtools/tools/javac/diags/examples/EnumConstantExpected.java
+ test/langtools/tools/javac/diags/examples/EnumConstantNotExpected.java
! test/langtools/tools/javac/enum/EnumMembersOrder.out
! test/langtools/tools/javac/parser/JavacParserTest.java

Changeset: ffc34eaf7b49
Author:    jlahoda
Date:      2019-08-13 10:27 +0200
URL:       https://hg.openjdk.java.net/jdk/jdk/rev/ffc34eaf7b49

8228502: javac crashed on a broken classfile with ConstantValue attribute on a field of type Object
Summary: Produce an error when reading a classfile with a field with ConstantValue with a wrong type.
Reviewed-by: vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/langtools/tools/javac/classfiles/attributes/ConstantValue/BrokenConstantValue.java
+ test/langtools/tools/javac/classfiles/attributes/ConstantValue/BrokenConstantValue.out
+ test/langtools/tools/javac/classfiles/attributes/ConstantValue/HasBrokenConstantValue.jcod
+ test/langtools/tools/javac/diags/examples/BadConstantValueType/BadConstantValueType.java
+ test/langtools/tools/javac/diags/examples/BadConstantValueType/processors/CreateBadClassFile.java



More information about the jdk-all-changes mailing list