On Thu, 10 Jul 2025 21:47:35 GMT, Chen Liang <li...@openjdk.org> wrote:
> Noticed this error when I was verifying all sizes are u2 compatible and > verified with a test that fails on mainline with ConstantPoolException > (because we write a size of 2 with 1-length list content) and works in this > patch. Problem wasn't discovered before because we use the `handlersSize < > handlers.size()` instead of `handlersSize != handlers.size()` check. > > Testing: jdk/jdk/classfile This pull request has now been integrated. Changeset: 189017f7 Author: Chen Liang <li...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/189017f750d54e7b53d0dd3a035e8c4e1cd5cab9 Stats: 22 lines in 2 files changed: 20 ins; 1 del; 1 mod 8361908: Mix and match of dead and valid exception handler leads to malformed class file Reviewed-by: asotona ------------- PR: https://git.openjdk.org/jdk/pull/26255