On Thu, 2 Jul 2026 01:00:47 GMT, Chris Plummer <[email protected]> wrote:

> When in preview mode 0x20 is ACC_IDENTITY, not ACC_SUPER, and is expected to 
> be set. So only clear 0x20 when not in preview mode.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Marked as reviewed by alanb (no project role).

test/hotspot/jtreg/vmTestbase/nsk/jdi/Accessible/modifiers/modifiers001.java 
line 193:

> 191:             boolean previewEnabled =
> 192:                 System.getProperty("test.java.opts", 
> "").contains("--enable-preview") ||
> 193:                 System.getProperty("test.vm.opts", 
> "").contains("--enable-preview");

Some tests use jdk.internal.misc.PreviewFeatures.isEnabled(), using the 
properties set by jterg seems okay here.

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

PR Review: 
https://git.openjdk.org/valhalla/pull/2613#pullrequestreview-4615256552
PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2613#discussion_r3511139600

Reply via email to