mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-21 07:45:11 +00:00
Merge
This commit is contained in:
commit
35ff6ba00e
@ -68,11 +68,12 @@ cp "${TESTSRC}"/RedefineMethodWithAnnotationsAnnotations.java \
|
||||
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"
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user