Explicitly specify that `Class::desiredAssertionStatus` returns `false` for 
primitives and arrays.

The original spec of this method says "class" instead of "class or interface", 
which is technically incorrect, but the specifications around assertions here 
and in the JLS are quite messed up, so I am withholding from more ambitious 
changes.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8389466

Changes: https://git.openjdk.org/jdk/pull/32110/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32110&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8389466
  Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/32110.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32110/head:pull/32110

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

Reply via email to