We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WildcardTypeAccess.hasNoBound() returns for wildcards bounded by an array type, that they have no bound. Example query:
WildcardTypeAccess.hasNoBound()
import java from WildcardTypeAccess w where exists (w.getUpperBound()) and w.hasNoBound() select w
Query console link
The issue appears to be that this predicate only checks for TypeAccess children, however ArrayTypeAccess is not a subclass of TypeAccess:
TypeAccess
ArrayTypeAccess
codeql/java/ql/src/semmle/code/java/Expr.qll
Lines 1589 to 1590 in 595ab44
Maybe it would suffice checking that any child expression at index 0 or 1 exists (or would that also match annotations somehow)?
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
WildcardTypeAccess.hasNoBound()
returns for wildcards bounded by an array type, that they have no bound.Example query:
Query console link
The issue appears to be that this predicate only checks for
TypeAccess
children, howeverArrayTypeAccess
is not a subclass ofTypeAccess
:codeql/java/ql/src/semmle/code/java/Expr.qll
Lines 1589 to 1590 in 595ab44
Maybe it would suffice checking that any child expression at index 0 or 1 exists (or would that also match annotations somehow)?
The text was updated successfully, but these errors were encountered: