JDK-8311534 : VerifyLocalVariableTableOnRetransformTest test fails with DummyClassWithLVT was not seen by transform()
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.instrument
  • Affected Version: 21,22,23,24
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-07-05
  • Updated: 2025-06-02
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.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8346151 :  
Description
Test that failed: java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.java
Platform: windows-x64 (Windows Server 2016)
    (seen only on this platform so far, but may be platform independent)

Comments
We normally have P5 priority for failures caused by UT.
30-05-2025

When the test succeeded, the log contains: Debugging message: Added transformer VerifyLocalVariableTableOnRetransformTest$MyObserver with canRetransform=true VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'DummyClassWithLVT' of 1664 bytes. Info: DummyClassWithLVT lengths match. Info: verified 'DummyClassWithLVT.class' matches 'classfileBuffer'. VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'DummyClassWithLVT' of 1664 bytes. Info: DummyClassWithLVT lengths match. Info: verified 'DummyClassWithLVT.class' matches 'classfileBuffer'. Debugging message: tearDown beginning VerifyLocalVariableTableOnRetransformTest$MyObserver.transform() sees 'com/sun/javatest/regtest/agent/AStatus' of 4796 bytes. (and a number of "sees" records for other classes) Successful UT run contains "sees" for some classes between "Added transformer" and "tearDown beginning" Failed UT run has nothing between "Added transformer" and "tearDown beginning" The test fails on 1st check (when the test class is loaded). if some ClassFileTransformer.transform throws an exception, JLI silently ignores it. The 1st statement of the test transformer is logging. We can have something like JDK-8264667 when the test transformer concatenates strings for logging (when some class used by UT is loaded).
11-12-2024