GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

False negative: multianewarray may raise IllegalAccessError

未關閉
#1,655 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug p2
主要語言
Java
星號
163
分支
80
PR 合併指標
30 天內沒有已合併 PR

描述

Linkage Checker may miss an invalid reference for multi-dimensional array creation.

Linkage Checker only looks for the class references (Class_info data) in the constant pool of class files. However, JVM operation "multianewarray" creates multi-dimensional array of a class without the class reference. It uses a class reference of array of array of the class.

Example https://gist.github.com/suztomo/d8a4bcadb06ac22393321f9d82f05e6c:

```
#2 = Class #19 // "[[Lfoo/B;"
...

2: multianewarray #2, 2 // class "[[Lfoo/B;"
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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