RFR: 8262002: java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh failed with "TestCaseScaffoldException: DummyClassWithLVT did not match .class file"
Serguei Spitsyn
sspitsyn at openjdk.java.net
Thu Apr 15 04:05:35 UTC 2021
On Sat, 10 Apr 2021 01:10:37 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
> 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
test/jdk/java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.java line 186:
> 184: int lineNum = 0;
> 185: for (String line: out1) {
> 186: if (expectedDiffenent(line)) {
Is it possible to use the `expectedDiffenent()` as a filter to get only needed lines from `disassembleClassFile()`?
-------------
PR: https://git.openjdk.java.net/jdk/pull/3426
More information about the hotspot-dev
mailing list