On Fri, 12 Jun 2026 16:02:35 GMT, Chen Liang <[email protected]> wrote:

> In `PreviewFeature.Feature`, there is a `LANGUAGE_MODEL` for general support 
> of preview features, currently used by `javax.lang` tree visitors. This is 
> confusing as JEP 401 [incorrectly 
> marked](https://github.com/openjdk/valhalla/pull/2533#discussion_r3391007566) 
> a new language modifier as a `LANGUAGE_MODEL` preview feature API. This 
> "feature" is better renamed `PREVIEW_SUPPORT` to reduce confusions.
> 
> ---------
> - [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: 3bd0923c
Author:    Chen Liang <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/3bd0923ca8a3a61fb69749b9b4fc249f5aabf43c
Stats:     24 lines in 11 files changed: 12 ins; 0 del; 12 mod

8386601: Rename LANGUAGE_MODEL preview feature to PREVIEW_SUPPORT

Reviewed-by: hannesw, vromero

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

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

Reply via email to