Integrated: 8286391: Address possibly lossy conversions in jdk.compiler

Adam Sotona asotona at openjdk.java.net
Mon May 23 10:33:02 UTC 2022


On Wed, 11 May 2022 13:20:02 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> This is a part of addressing of all possibly lossy conversions in compound assignments across JDK sources.
> Two cases have been found in jdk.compiler and they are addressed by this patch.
> One case in ClassWriter is resolved by changing local variable from char to int type to avoid multiple implicit and explicit conversions.
> Second case in Code is resolved by making the implicit conversion from int to char explicit.
> 
> Please review.
> 
> Thanks,
> Adam

This pull request has now been integrated.

Changeset: c9065915
Author:    Adam Sotona <asotona at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/c9065915b6063aeed5e9c50aebb245a64b425f17
Stats:     2 lines in 2 files changed: 0 ins; 0 del; 2 mod

8286391: Address possibly lossy conversions in jdk.compiler

Reviewed-by: mcimadamore

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

PR: https://git.openjdk.java.net/jdk/pull/8652


More information about the compiler-dev mailing list