You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the GenericClass<T>is available.
Example pseudo code
class GenericClass<T> {
public method() { ... };
};
GenericClass<UnknownType> i1 = new GenericClass<>();
i1.method(); // not connected
GenericClass<Boolean> i2 = new GenericClass<>();
i2.method(); // connected
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:
Thanks for the update. Please let us know if there is something we can do to help. For example, I also saw the ref to the internal CodeQL repo so if you want us to verify some things on more complicated codebase(s) that caused the problems we are happy to put in some work :)
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: