Query module ImpossibleCast

name
Impossible array cast
description
Trying to cast an array of a particular type as an array of a subtype causes a ‘ClassCastException’ at runtime.
kind
problem
problem.severity
error
precision
low
id
java/impossible-array-cast
tags
reliability correctness logic external/cwe/cwe-704

Imports

java

Provides all default Java QL imports.

Predicates

Classes

ArrayCast

A cast expression of the form (T[])new S[...].