-
CSR
-
Resolution: Approved
-
P4
-
None
-
source, binary
-
low
-
-
Java API
-
SE
Summary
Make ICC_Profile API classes sealed or final to indicate application subclassing is not possible.
Problem
It is not possible for applications to sub-class ICC_Profile classes since they have no public or protected constructors. This could be made more clear by using sealed and final modifiers
Solution
Apply the sealed modifier to the ICC_Profile class listing its only extant subclasses and mark those subclasses final.
Specification
java.awt.color.ICC_Profile
-public class ICC_Profile implements Serializable +public sealed class ICC_Profile implements Serializable + permits ICC_ProfileGray, + ICC_ProfileRGB
java.awt.color.ICC_ProfileGray
-public class ICC_ProfileGray extends ICC_Profile +public final class ICC_ProfileGray extends ICC_Profile
java.awt.color.ICC_ProfileRGB
-public class ICC_ProfileRGB extends ICC_Profile +public final class ICC_ProfileRGB extends ICC_Profile
- csr of
-
JDK-8283701 Add final or sealed modifier to appropriate java.awt.color ICC_Profile API classes
-
- Resolved
-