Integrated: 8332614: Type-checked ConstantPool.entryByIndex and ClassReader.readEntryOrNull
Chen Liang
liach at openjdk.org
Thu May 30 11:54:04 UTC 2024
On Tue, 21 May 2024 14:33:54 GMT, Chen Liang <liach at 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 <liach at openjdk.org>
Committer: Adam Sotona <asotona at 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
More information about the core-libs-dev
mailing list