RFR: 8294971: jdk.jlink jdk.tools.jimage.JImageTask is using ASM to verify classes

Adam Sotona asotona at openjdk.org
Thu Mar 9 18:21:17 UTC 2023


The message from this sender included one or more files
which could not be scanned for virus detection; do not
open these files unless you are certain of the sender's intent.

----------------------------------------------------------------------
On Thu, 9 Mar 2023 11:33:13 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> jdk.jlink jdk.tools.jimage.JImageTask is using ASM to verify classes
> 
> This patch converts ASM calls to Classfile API.
> 
> Please review.
> 
> Thanks,
> Adam

Provided code only reflect original verification by parsing the class content.
It is now possible to extend the verification by utilizing Classfile API bytecode verification. However it would require to provide appropriate class hierarchy resolution for stack map table verification.

-------------

PR: https://git.openjdk.org/jdk/pull/12943


More information about the core-libs-dev mailing list