Java to Kotlin annotation retention mapping + new test + JvmLoader test adaptation

This commit is contained in:
Mikhail Glukhikh
2015-07-20 16:09:43 +03:00
parent c3c02e49c9
commit c2480d1183
13 changed files with 316 additions and 39 deletions
@@ -0,0 +1,43 @@
// SKIP_IN_RUNTIME_TEST
package test;
import java.lang.annotation.*;
public class AnnotationRetentions {
public @interface BaseAnnotation {
}
@Retention(RetentionPolicy.SOURCE)
public @interface SourceAnnotation {
}
@Retention(RetentionPolicy.CLASS)
public @interface BinaryAnnotation {
}
@Retention(RetentionPolicy.RUNTIME)
public @interface RuntimeAnnotation {
}
@BaseAnnotation class BaseClass {
}
@SourceAnnotation class SourceClass {
}
@BinaryAnnotation class BinaryClass {
}
@RuntimeAnnotation class RuntimeClass {
}
}