Java: Generic Class Methods not connected when type parameter is unknown (build-mode=none) #19538
Labels
question
Further information is requested
Content-Length: 258728 | pFad | http://github.com/github/codeql/issues/19538
C5Fetched URL: http://github.com/github/codeql/issues/19538
Alternative Proxies:
Uh oh!
There was an error while loading. Please reload this page.
The introduction of
build-mode=none
has been very helpful for us. This allows us to create (partial) CodeQL databases, without being forced to fully resolve (maven) dependencies. Sometimes this is convenient because some dependencies might not be easily resolvable.That said, we also see many examples of Generic Classes and Methods in our codebases. Unfortunately, we cannot analyse (calls to) Generic Methods that are instantiated with type parameters that are unknown.
Note that, while the code of the type parameter
T
is unavailable, the code of theGenericClass<T>
is available.Example pseudo code
See attached codeql_issue.zip zip file for a more thorough analysis of the issue.
The text was updated successfully, but these errors were encountered: