On Thu, 30 Jul 2026 20:59:32 GMT, Chen Liang <[email protected]> wrote:

> 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).

This pull request has now been integrated.

Changeset: 69e99d9d
Author:    Chen Liang <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/69e99d9dc108d0cf8fdeca390fbb37d278349e7f
Stats:     4 lines in 1 file changed: 4 ins; 0 del; 0 mod

8389466: Clarify Class::desiredAssertionStatus for primitive and array types

Reviewed-by: alanb

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

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

Reply via email to