Use properties of Java annotations in codegen tests

Retain obsolete versions until support for methods in Java annotations is dropped
This commit is contained in:
Denis Zharkov
2015-04-21 12:00:18 +03:00
parent 6ca7d2aad7
commit 29bf24b7d3
29 changed files with 326 additions and 21 deletions

View File

@@ -2,5 +2,5 @@
fun box(): String {
val ann = javaClass<MyJavaClass>().getAnnotation(javaClass<JavaAnn>())
if (ann == null) return "fail: cannot find JavaAnn on MyClass"
return ann.value().simpleName!!
return ann.value.simpleName!!
}