JDK-8246280 : Refine API to model sealed classes and interfaces in javax.lang.model
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: javax.lang.model
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-06-01
  • Updated: 2024-10-27
  • Resolved: 2023-09-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22 b16Fixed
Related Reports
Relates :  
Relates :  
Description
The API modeling sealed classes and interfaces in javax.lang.model may benefit from some refinement.

In particular, the "getPermittedSubclasses" may be renamed to convey subtypes are classes or interfaces can be returned. In any case, the discussion of the nature of "permitted subclasses" should be explained in more detail.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/15795 Date: 2023-09-18 19:34:49 +0000
27-10-2024

Changeset: 5308bbbc Author: Joe Darcy <darcy@openjdk.org> Date: 2023-09-18 20:40:01 +0000 URL: https://git.openjdk.org/jdk/commit/5308bbbcf8005560478d221d44f00fd2849d44f0
18-09-2023