mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Java: Fix false positives in evaluation-to-constant query for ErrorType
This commit is contained in:
@@ -19,7 +19,7 @@ predicate isConstantExp(Expr e) {
|
||||
// A literal is constant.
|
||||
e instanceof Literal
|
||||
or
|
||||
e instanceof TypeAccess
|
||||
exists(TypeAccess ta | ta = e | not ta.getType() instanceof ErrorType)
|
||||
or
|
||||
e instanceof ArrayTypeAccess
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user