TypeTestUtil.isA
confuses type Character
from same package with java.lang.Character
#4690
Labels
a:bug
PMD crashes or fails to analyse a file.
Affects PMD Version: 7.0.0-rc3
Description:
TypeTestUtil.isA
is used byPrimitiveWrapperInstantiationRule
to check if a type is a primitive like aCharacter
. The implementation is not correct, because with this code:src/Character.java
src/Test.java
the lint reports the
new Character
line, which is wrong. The code does compile and the constructor does not exist injava.lang.Character
.The text was updated successfully, but these errors were encountered: