git: openjdk/jdk: 8244681: Add a warning for possibly lossy conversion in compound assignments
Adam Sotona
asotona at openjdk.org
Thu Sep 15 10:12:11 UTC 2022
Changeset: aff5ff14
Author: Adam Sotona <asotona at openjdk.org>
Date: 2022-09-15 10:10:23 +0000
URL: https://git.openjdk.org/jdk/commit/aff5ff14b208b3c2be93d7b4fab8b07c5be12f3e
8244681: Add a warning for possibly lossy conversion in compound assignments
8293797: Release Note: Javac warns about type casts in compound assignments with possible lossy conversions
Reviewed-by: erikj, prr
! make/CompileDemos.gmk
! make/modules/java.desktop/Java.gmk
! make/modules/java.xml/Java.gmk
+ make/modules/jdk.naming.dns/Java.gmk
! src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/javac.properties
! src/jdk.compiler/share/man/javac.1
+ test/langtools/tools/javac/diags/examples/LossyConversion.java
+ test/langtools/tools/javac/lint/LossyConversions.java
+ test/langtools/tools/javac/lint/LossyConversions.out
More information about the jdk-changes
mailing list