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 摘要。