On Tue, 21 May 2024 14:33:54 GMT, Chen Liang <li...@openjdk.org> wrote:

> I propose to add type-checked ConstantPool.entryByIndex and 
> ClassReader.readEntryOrNull taking an extra Class parameter, which throws 
> ConstantPoolException instead of ClassCastException on type mismatch, which 
> can happen to malformed ClassFiles.
> 
> Requesting a review from @asotona. Thanks!
> 
> Proposal on mailing list: 
> https://mail.openjdk.org/pipermail/classfile-api-dev/2024-May/000512.html

This pull request has now been integrated.

Changeset: f608918d
Author:    Chen Liang <li...@openjdk.org>
Committer: Adam Sotona <asot...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/f608918df3f887277845db383cf07b0863bba615
Stats:     269 lines in 15 files changed: 179 ins; 39 del; 51 mod

8332614: Type-checked ConstantPool.entryByIndex and ClassReader.readEntryOrNull

Reviewed-by: asotona

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

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

Reply via email to