Integrated: 8356577: Migrate ClassFileVersionTest to be feature-agnostic

Chen Liang liach at openjdk.org
Fri May 9 22:00:54 UTC 2025


On Thu, 8 May 2025 20:05:56 GMT, Chen Liang <liach at openjdk.org> wrote:

> In #24923 we noted that ClassFileVersionTest depends on arbitrary preview features to have javac mark itself as preview. This creates an extra, hard-to-detect dependency on those features, and make its maintenance costly. The best way to have a class that has preview bit is to use ClassFile API to generate such a simple class instead, now that ClassFile API is available.
> 
> Testing: This test itself

This pull request has now been integrated.

Changeset: 0f2a6c26
Author:    Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0f2a6c266b2e3aab59a5cd183e10dfc4820ca92d
Stats:     19 lines in 1 file changed: 7 ins; 8 del; 4 mod

8356577: Migrate ClassFileVersionTest to be feature-agnostic

Reviewed-by: dholmes, alanb

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

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


More information about the hotspot-runtime-dev mailing list