Minor, rename codegen tests on platformName and platformStatic

This commit is contained in:
Alexander Udalov
2015-10-23 16:02:27 +03:00
parent 18f3eb87e4
commit ae4c7b5a61
35 changed files with 196 additions and 196 deletions

View File

@@ -0,0 +1,28 @@
import java.lang.String;
import java.lang.annotation.Annotation;
class Test {
public static String test1() throws NoSuchMethodException {
Annotation[] test1s = A.class.getMethod("test1").getAnnotations();
for (Annotation test : test1s) {
String name = test.toString();
if (name.contains("testAnnotation")) {
return "OK";
}
}
return "fail";
}
public static String test2() throws NoSuchMethodException {
Annotation[] test2s = B.class.getMethod("test1").getAnnotations();
for (Annotation test : test2s) {
String name = test.toString();
if (name.contains("testAnnotation")) {
return "OK";
}
}
return "fail";
}
}