Integrated: 8331655: ClassFile API ClassCastException with verbose output of certain class files
Adam Sotona
asotona at openjdk.org
Fri May 3 19:17:56 UTC 2024
On Fri, 3 May 2024 15:28:05 GMT, Adam Sotona <asotona at openjdk.org> wrote:
> Specifically corrupted constant pool of a class file can cause ClassCastException, when the entries are accessed by Class-File API in exact order.
>
> This fix avoids the ClassCastException and throws ConstantPoolException instead.
> Test is attached.
>
> Please review.
>
> Thanks,
> Adam
This pull request has now been integrated.
Changeset: c1a16452
Author: Adam Sotona <asotona at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c1a164528a538d5de78f99c4c92291b1906703f5
Stats: 24 lines in 2 files changed: 9 ins; 11 del; 4 mod
8331655: ClassFile API ClassCastException with verbose output of certain class files
Reviewed-by: psandoz
-------------
PR: https://git.openjdk.org/jdk/pull/19088
More information about the core-libs-dev
mailing list