RFR: 8361638: java.lang.classfile.CodeBuilder.CatchBuilder should not throw IllegalArgumentException for representable exception handlers [v3]
Chen Liang
liach at openjdk.org
Fri Aug 15 04:28:17 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
Thanks for the reviews!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26372#issuecomment-3190563654
More information about the core-libs-dev
mailing list