On Fri, 12 Jun 2026 18:26:24 GMT, Chen Liang <[email protected]> wrote:

> A class or interface that permits a subclass or subinterface that is part of 
> a preview feature marks the permitting type as preview feature and generates 
> a preview notice for it. No preview message should be generated as the 
> permitted preview subclass does not affect normal use of the type.
> 
> This is relevant in the context of JEP 401 where 
> java.lang.classfile.Attribute and java.lang.classfile.ClassElement permit a 
> new preview interface LoadableDescriptorsAttribute, but should not be marked 
> as preview APIs.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: d4acb51b
Author:    Chen Liang <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/d4acb51b33c7a45e740b9713c77f661d757f880e
Stats:     38 lines in 2 files changed: 36 ins; 0 del; 2 mod

8386589: Permitting a preview subclass should not produce a preview note

Reviewed-by: hannesw

-------------

PR: https://git.openjdk.org/jdk/pull/31505

Reply via email to