FYI, new javac lint warning for possibly lossy conversion in compound assignments

Adam Sotona adam.sotona at oracle.com
Thu Sep 15 10:19:20 UTC 2022


Hello,
New lint option `lossy-conversions` has been added to `javac` to warn about type casts in compound assignments with possible lossy conversions.
You may observe this new warning if the type of the right-hand operand of a compound assignment is not assignment compatible with the type of the variable.
For more information see CSR: JDK-8286377<https://bugs.openjdk.org/browse/JDK-8286377>

Thanks,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jdk-dev/attachments/20220915/22d6f17c/attachment.htm>


More information about the jdk-dev mailing list