RFR: 8262002: java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh failed with "TestCaseScaffoldException: DummyClassWithLVT did not match .class file"

Alex Menkov amenkov at openjdk.java.net
Sat Apr 10 01:22:45 UTC 2021

The test actually failed starting from jdk13, but the error is masked by JDK-8264667 (and shell part of the test didn't verify result of the java execution)
The fix:
- updates JvmtiClassFileReconstituter to add attributes in the same order as javac does
- makes the test java instead of shell
- added workaround for JDK-8264667
- test code is ready to ignore order of attributes


Commit messages:
 - fixed spaces
 - JDK-8262002

Changes: https://git.openjdk.java.net/jdk/pull/3426/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3426&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8262002
  Stats: 220 lines in 4 files changed: 113 ins; 96 del; 11 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3426.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3426/head:pull/3426

PR: https://git.openjdk.java.net/jdk/pull/3426

More information about the core-libs-dev mailing list