RFR: 8340132: Remove internal CpException for reading malformed utf8

Adam Sotona asotona at openjdk.org
Tue Sep 17 07:14:08 UTC 2024


On Tue, 17 Sep 2024 03:24:08 GMT, Chen Liang <liach at openjdk.org> wrote:

> Remove an internal exception for invalid utf8 entry format; it should have been an IllegalArgumentException but was an arbitrary subtype of RuntimeException. Converted to throw ConstantPoolException, and consolidated into a single method to reduce code size.

Looks good to me.

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

Marked as reviewed by asotona (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/21027#pullrequestreview-2308589050


More information about the core-libs-dev mailing list