github / github/codeql

[Feature Request] support add constraint on typeVariable while perform virtual dispatch in java query

Offen
#7,486 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement Java
Vorherrschende Sprache
CodeQL
Sterne
10.1k
Forks
2.1k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
141

Beschreibung

Is it possible to add class type constraint on TypeVariable while perform virtual dispatch in java query?

Take this sinppet for example:
```java
E data = (E) in.readObject();
data.equals(....);
```
It seems `data` can be any class and have data flow tracked into `equals` method as long as the class has one even if the class is unserializable.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.