github / github/codeql

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

未關閉
#7,486 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement Java
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。