On Thu, 17 Jul 2025 16:50:33 GMT, Chen Liang <li...@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.

This pull request has now been integrated.

Changeset: 6fb6f3d3
Author:    Chen Liang <li...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/6fb6f3d39b321e2a1c1fa2cef2c19222a6dcf7b9
Stats:     85 lines in 4 files changed: 53 ins; 14 del; 18 mod

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

Reviewed-by: asotona

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

PR: https://git.openjdk.org/jdk/pull/26372

Reply via email to