Mercurial > hg > openjdk > jigsaw > jdk
changeset 7351:36f9e357b84b
Merge
author | coleenp |
---|---|
date | Wed, 17 Apr 2013 15:06:17 -0400 |
parents | 7f9f69729934 (diff) 73e3b474125e (current diff) |
children | 131686bea632 |
files | |
diffstat | 3 files changed, 19 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/test/java/lang/instrument/RedefineMethodWithAnnotations.sh Wed Apr 17 12:04:15 2013 -0700 +++ b/test/java/lang/instrument/RedefineMethodWithAnnotations.sh Wed Apr 17 15:06:17 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"
--- a/test/java/lang/instrument/RedefineMethodWithAnnotationsTarget.java Wed Apr 17 12:04:15 2013 -0700 +++ b/test/java/lang/instrument/RedefineMethodWithAnnotationsTarget.java Wed Apr 17 15:06:17 2013 -0400 @@ -27,7 +27,13 @@ */ public class RedefineMethodWithAnnotationsTarget { public void annotatedMethod(@ParameterAnnotation( - value = ParameterAnnotation.STRING_VALUE_1) String parameter) { } + value = ParameterAnnotation.STRING_VALUE_1) String parameter) { + System.out.println("First version of annotatedMethod(String)"); + System.out.println("parameter is " + parameter); + } public void annotatedMethod(@ParameterAnnotation( - value = ParameterAnnotation.INT_VALUE_1) int parameter) { } + value = ParameterAnnotation.INT_VALUE_1) int parameter) { + System.out.println("First version of annotatedMethod(int)"); + System.out.println("parameter is " + parameter); + } }
--- a/test/java/lang/instrument/RedefineMethodWithAnnotationsTarget_2.java Wed Apr 17 12:04:15 2013 -0700 +++ b/test/java/lang/instrument/RedefineMethodWithAnnotationsTarget_2.java Wed Apr 17 15:06:17 2013 -0400 @@ -29,7 +29,13 @@ */ public class RedefineMethodWithAnnotationsTarget { public void annotatedMethod(@ParameterAnnotation( - value = ParameterAnnotation.INT_VALUE_2) int parameter) { } + value = ParameterAnnotation.INT_VALUE_2) int parameter) { + System.out.println("Second version of annotatedMethod(int)"); + System.out.println("parameter is " + parameter); + } public void annotatedMethod(@ParameterAnnotation( - value = ParameterAnnotation.STRING_VALUE_2) String parameter) { } + value = ParameterAnnotation.STRING_VALUE_2) String parameter) { + System.out.println("Second version of annotatedMethod(String)"); + System.out.println("parameter is " + parameter); + } }