On Mon, 8 Jun 2026 17:05:46 GMT, Alan Bateman <[email protected]> wrote:
> The specification of JVMTI GetClassModifiers needs some TLC. The spec was > carried over from the equivalent function in JVMDI but doesn't really specify > that it works like Class::getModifiers and returns Java language modifiers > and not necessarily the access flags from the class file. The change in > behavior to only set ACC_IDENTITY when the class is an identity class or > array makes it a good time to re-write the spec to align with existing and > future behavior. > > A new test is added to test this function with value classes. The tests are > added to the "newer" serviceability/jvmti tree. There are some older tests > for GetClassModifiers in vmTestbase/nsk suite so there is a bit of an overlap. > > --------- > - [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: 2fe010c8 Author: Alan Bateman <[email protected]> Committer: Chen Liang <[email protected]> URL: https://git.openjdk.org/valhalla/commit/2fe010c8d326ef5b4c6711595f2b4398467c3056 Stats: 439 lines in 5 files changed: 425 ins; 1 del; 13 mod 8386250: [lworld] JVMTI GetClassModifiers Reviewed-by: liach, sspitsyn ------------- PR: https://git.openjdk.org/valhalla/pull/2526
