hg: jdk/submit: 8247352: improve error messages for sealed classes and records
vicente.romero at oracle.com
vicente.romero at oracle.com
Sat Sep 5 03:52:29 UTC 2020
Changeset: bdc20ee1a68d
Author: vromero
Date: 2020-09-04 23:51 -0400
URL: https://hg.openjdk.java.net/jdk/submit/rev/bdc20ee1a68d
8247352: improve error messages for sealed classes and records
Reviewed-by: mcimadamore
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/langtools/tools/javac/diags/examples/AnonymousCantInheritFromSealed.java
+ test/langtools/tools/javac/diags/examples/CantExtendSealedInAnotherModule/CantExtendSealedInAnotherModule.java
+ test/langtools/tools/javac/diags/examples/CantExtendSealedInAnotherModule/modulesourcepath/mSealed/a/Base.java
+ test/langtools/tools/javac/diags/examples/CantExtendSealedInAnotherModule/modulesourcepath/mSealed/module-info.java
+ test/langtools/tools/javac/diags/examples/CantExtendSealedInAnotherModule/modulesourcepath/mSub/b/Impl.java
+ test/langtools/tools/javac/diags/examples/CantExtendSealedInAnotherModule/modulesourcepath/mSub/module-info.java
+ test/langtools/tools/javac/diags/examples/CantExtendSealedInAnotherPkg/CantExtendSealedInAnotherPkg.java
+ test/langtools/tools/javac/diags/examples/CantExtendSealedInAnotherPkg/p1/Sealed.java
+ test/langtools/tools/javac/diags/examples/CantExtendSealedInAnotherPkg/p2/Sub.java
! test/langtools/tools/javac/diags/examples/LocalCantInheritFromSealed.java
! test/langtools/tools/javac/records/RecordCompilationTests.java
! test/langtools/tools/javac/sealed/SealedDiffConfigurationsTest.java
More information about the jdk-submit-changes
mailing list