-
Bug
-
Resolution: Fixed
-
P4
-
8, 11, 13, 15, 16, 17
-
b15
In Types.arraySuperType(), SonarCloud reports:
Remove this dangerous instance of double-checked locking.
Indeed, the `arraySuperType` is not `volatile`, while `IntersectionClassType` has non-`final` fields (both in itself and in superclasses). This is an incorrect DCL.
Remove this dangerous instance of double-checked locking.
Indeed, the `arraySuperType` is not `volatile`, while `IntersectionClassType` has non-`final` fields (both in itself and in superclasses). This is an incorrect DCL.
- duplicates
-
JDK-8024317 Incorrectly implemented (and unnecessary) double-checked locking in com.sun.tools.javac.code.Types.arraySuperType()
- Closed