Integrated: 8286797: Guards of constant value false are not permitted
Aggelos Biboudis
abimpoudis at openjdk.java.net
Thu May 19 16:13:54 UTC 2022
On Tue, 17 May 2022 12:25:41 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> Simple fix that addresses this line from the spec:
>
>> It is a compile-time error if a when expression is a constant expression ([15.29](https://docs.oracle.com/javase/specs/jls/se18/html/jls-15.html#jls-15.29)) with the value false.
>
> Extracts one small utility method `isBooleanWithValue` in `TreeInfo`.
This pull request has now been integrated.
Changeset: fd36f373
Author: Aggelos Biboudis <abimpoudis at openjdk.org>
Committer: Vicente Romero <vromero at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/fd36f3730ec92d39f81f9d6d4d2b976938ed44bd
Stats: 106 lines in 9 files changed: 100 ins; 0 del; 6 mod
8286797: Guards of constant value false are not permitted
Reviewed-by: vromero
-------------
PR: https://git.openjdk.java.net/jdk/pull/8745
More information about the compiler-dev
mailing list