On Tue, 27 Jan 2026 10:48:41 GMT, Jean-Philippe Bempel <[email protected]> 
wrote:

> …retransformed
> 
> Fix a retransform error when retransforming a record with type annotation. 
> processing the record type annotation was done by calling the wrong method 
> and using the one to process regular annotation. Regular annotations have not 
> the same structure and decoding was therefore incorrect. The decoding methods 
> detect a problem but this error was not propagated correctly outside of 
> VM_RedfineClass::load_new_class_versions method, swallowing the error and 
> leaving the retransformed class in bad state.
> 
> Here we have fixed the call to the right method for decoding the type 
> annotations but also propagated the error when rewriting the constant pool as 
> an JVMTI_ERROR_INTERNAL

This pull request has now been integrated.

Changeset: 0c60c9ca
Author:    Jean-Philippe Bempel <[email protected]>
Committer: Serguei Spitsyn <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/0c60c9ca1477a114a9c7095226d3a1e5d31600fb
Stats:     566 lines in 5 files changed: 564 ins; 0 del; 2 mod

8376185: NoSuchFieldError thrown after a record with type annotation 
retransformed

Reviewed-by: sspitsyn, dholmes

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

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

Reply via email to