--- a/jdk/test/java/lang/instrument/RedefineMethodWithAnnotations.sh Wed Apr 17 16:11:19 2013 +0100
+++ b/jdk/test/java/lang/instrument/RedefineMethodWithAnnotations.sh Wed Apr 17 12:50:45 2013 -0400
@@ -68,11 +68,12 @@
RedefineMethodWithAnnotationsAnnotations.java
"${JAVA}" ${TESTVMOPTS} -javaagent:RedefineMethodWithAnnotationsAgent.jar \
+ -XX:+StressLdcRewrite -XX:+IgnoreUnrecognizedVMOptions \
-cp "${TESTCLASSES}" RedefineMethodWithAnnotationsApp > output.log 2>&1
cat output.log
-MESG="Exception"
-grep "$MESG" output.log
+MESG="Exception|fatal"
+egrep "$MESG" output.log
result=$?
if [ "$result" = 0 ]; then
echo "FAIL: found '$MESG' in the test output"