github / github/codeql

Java: FP in java/abstract-to-concrete-cast when typechecked against wildcard type

Đang mở
#1,531 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
false-positive Java
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

See: https://discuss.lgtm.com/t/java-false-positive-imho-cast-from-abstract-to-concrete-collection/2168

It seems that this query does attempt to filter when such a typecheck is present, but only takes into account raw types and not parameterized types with wildcards.

Example: https://lgtm.com/projects/g/fschopp/java-types/snapshot/6a6a2e9ec45512ab691927bcd767e300bf968389/files/src/main/java/net/florianschoppmann/java/reflect/ImmutableList.java#x1d138b35162e042f:1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.