This fixes a longstanding problem with desiredAssertionStatus and adds a test. Tested with tier1.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - add Sanity[] - 8389259: Class::desiredAssertionStatus asserts with primitive or array class receiver Changes: https://git.openjdk.org/jdk/pull/32086/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32086&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8389259 Stats: 54 lines in 2 files changed: 50 ins; 2 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/32086.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32086/head:pull/32086 PR: https://git.openjdk.org/jdk/pull/32086
