JDK-8338543 : ClassBuilder withMethod builders should cache the method type symbol
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-08-19
  • Updated: 2024-08-26
  • Resolved: 2024-08-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24 b12Fixed
Description
ClassBuilder.withMethod and withMethodBody are not caching the MethodTypeDesc passed to the factories. As a result, this causes repeated parsing of MTD during the later local variable slot calculation and stack map generation.
Comments
Changeset: 68d1f5c3 Branch: master Author: Chen Liang <liach@openjdk.org> Date: 2024-08-20 05:43:04 +0000 URL: https://git.openjdk.org/jdk/commit/68d1f5c33bf3f64f44f8a10c2f9e4007cfd07d2b
20-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20627 Date: 2024-08-19 15:08:05 +0000
19-08-2024