RFR: 8361638: java.lang.classfile.CodeBuilder.CatchBuilder should not throw IllegalArgumentException for representable exception handlers [v3]

Adam Sotona asotona at openjdk.org
Thu Jul 31 12:22:56 UTC 2025


On Tue, 29 Jul 2025 17:06:44 GMT, Chen Liang <liach at openjdk.org> wrote:

>> CatchBuilder has a simple check for duplicate catch types. However, this check is never comprehensive as it still allows subtypes covered by supertypes, and covering that would be too costly; in addition, the "illegal" duplicate catch types are still valid `class` files. We should remove this duplicate catch type check, and compensate with documentation on the effects of duplicate types.
>
> Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Wrong ref

Looks good to me.

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

Marked as reviewed by asotona (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26372#pullrequestreview-3075170838


More information about the core-libs-dev mailing list