ReplayCompile could fail with following errors when parsing replay_pid files:
1 - Failed on hidden class with comment expected
2 - Failed on line not properly terminated
3 - Failed on tag mismatch: wrong class files?
4 - Failed on unknown command
In case of error 4 the unknown command is "anceKlass". Looks like 'instanceKlass' command was cut of for some reason. Could it be because of JDK-8276965?
To reproduce above issues run java/lang/String/CompactString/CharAt.java and java/lang/String/CompactString/CompareTo.java tests without any VM flags just to get these tests compiled:
> $JT_HOME/bin/jtreg -jdk:$TESTED_JDK -retain:all open/test/jdk/java/lang/String/CompactString/CharAt.java
$JT_HOME/bin/jtreg -jdk:$TESTED_JDK -retain:all open/test/jdk/java/lang/String/CompactString/CompareTo.java
Then set classpath like:
> CLASSPATH="JTwork/classes/java/lang/String/CompactString/CharAt.d:JTwork/classes/java/lang/String/CompactString/CompareTo.d:$JT_HOME/lib/testng.jar:$JT_HOME/lib/jcommander.jar:$JT_HOME/lib/guice.jar:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
And then run replay files one by one
> $TESTED_JDK/bin/java -cp $CLASSPATH -XX:+ReplayCompiles -XX:ReplayDataFile=replay_bug_[N].log
Note, replay_bug_N.log file is used to reproduce issue N.