Commit Graph

19 Commits

Author SHA1 Message Date
Vicente Romero
96eed7fa6c 8343306: javac is failing to determine if a class and a sealed interface are disjoint
Reviewed-by: jlahoda, mcimadamore
2024-11-08 12:27:31 +00:00
Qing Xiao
741ae06c55 8313613: Use JUnit in langtools/lib tests
Reviewed-by: cstein, asotona
2023-10-16 17:14:34 +00:00
Jan Lahoda
78dc497786 8294550: Sealed check for casts isn't applied to array components
Reviewed-by: vromero
2022-10-20 13:01:12 +00:00
Vicente Romero
fd10f1996e 8275302: unexpected compiler error: cast, intersection types and sealed
Reviewed-by: jlahoda
2021-10-19 16:46:14 +00:00
Jan Lahoda
7b023a3f60 8273257: jshell doesn't compile a sealed hierarchy with a sealed interface and a non-sealed leaf
Reviewed-by: vromero
2021-09-03 09:30:56 +00:00
Vicente Romero
4f9d6b7d68 8267465: remove superfluous preview related annotations and test options
Reviewed-by: jlahoda
2021-06-07 13:57:15 +00:00
Vicente Romero
0fa9223f34 8260517: implement Sealed Classes as a standard feature in Java
Co-authored-by: Harold Seigel <hseigel@openjdk.org>
Co-authored-by: Vicente Romero <vromero@openjdk.org>
Reviewed-by: dholmes, mcimadamore, jlahoda
2021-05-20 09:11:08 +00:00
Vicente Romero
946b0fe19a 8266645: javac should not check for sealed supertypes in intersection types
Reviewed-by: mcimadamore
2021-05-07 14:38:18 +00:00
Vicente Romero
0b1b5c8d0b 8264373: javac hangs when annotation is declared with sealed public modifier
Reviewed-by: jlahoda
2021-04-15 19:07:11 +00:00
Vicente Romero
b2e582a882 8259905: Compiler treats 'sealed' keyword as 'var' keyword
Reviewed-by: jlahoda
2021-01-29 16:50:27 +00:00
Vicente Romero
acdd90b699 8258972: unexpected compilation error with generic sealed interface
Reviewed-by: jlahoda
2021-01-07 16:38:53 +00:00
Jonathan Gibbons
e2aa724a67 8258941: Test specify the Classpath exception in the header
Reviewed-by: vromero
2020-12-24 17:32:25 +00:00
Harold Seigel
d33a689b96 8256867: Classes with empty PermittedSubclasses attribute cannot be extended
Reviewed-by: lfoltan, mchung, jlahoda, chegar
2020-12-09 19:07:11 +00:00
Jan Lahoda
637b0c64b0 8246778: Compiler implementation for Sealed Classes (Second Preview)
Co-authored-by: Vicente Romero <vromero@openjdk.org>
Co-authored-by: Harold Seigel <hseigel@openjdk.org>
Reviewed-by: lfoltan, mchung, alanb, mcimadamore, chegar
2020-12-07 11:11:31 +00:00
Vicente Romero
fc82768478 8247849: permits clause of sealed interfaces should not allow parameterized types
Reviewed-by: jlahoda
2020-06-25 17:48:53 -04:00
Vicente Romero
e90621c169 8246199: 'permits' is a restricted identifier
Reviewed-by: mcimadamore
2020-06-08 11:08:28 -04:00
Jan Lahoda
358714bcd0 8246353: Sealed types not supported by jshell
Reviewed-by: rfield, vromero
2020-06-08 16:59:43 +02:00
Vicente Romero
0db1be28c7 8246486: javac doesn't allow a subclass to be declared before a sealed superclass with no permits clause
Reviewed-by: mcimadamore
2020-06-04 19:02:43 -04:00
Vicente Romero
d42bfef8a4 8227046: compiler implementation for sealed classes
8225056: VM support for sealed classes
8227044: javax.lang.model for sealed classes
8227045: Preview APIs support for sealed classes
8227047: Javadoc for sealed types
8245854: JVM TI Specification for sealed classes

Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Reviewed-by: mcimadamore, forax, darcy, dholmes, jlahoda, lfoltan, mchung, sspitsyn, vromero
2020-06-01 17:00:40 -04:00