Java to Kotlin annotation retention mapping + new test + JvmLoader test adaptation
This commit is contained in:
+43
@@ -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 {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package test
|
||||
|
||||
public open class AnnotationRetentions {
|
||||
public constructor AnnotationRetentions()
|
||||
|
||||
public final class BaseAnnotation : kotlin.Annotation {
|
||||
public constructor BaseAnnotation()
|
||||
}
|
||||
|
||||
test.AnnotationRetentions.BaseAnnotation() public/*package*/ open inner class BaseClass {
|
||||
public/*package*/ constructor BaseClass()
|
||||
}
|
||||
|
||||
kotlin.annotation.annotation(retention = AnnotationRetention.BINARY) public final class BinaryAnnotation : kotlin.Annotation {
|
||||
public constructor BinaryAnnotation()
|
||||
}
|
||||
|
||||
test.AnnotationRetentions.BinaryAnnotation() public/*package*/ open inner class BinaryClass {
|
||||
public/*package*/ constructor BinaryClass()
|
||||
}
|
||||
|
||||
kotlin.annotation.annotation(retention = AnnotationRetention.RUNTIME) public final class RuntimeAnnotation : kotlin.Annotation {
|
||||
public constructor RuntimeAnnotation()
|
||||
}
|
||||
|
||||
test.AnnotationRetentions.RuntimeAnnotation() public/*package*/ open inner class RuntimeClass {
|
||||
public/*package*/ constructor RuntimeClass()
|
||||
}
|
||||
|
||||
kotlin.annotation.annotation(retention = AnnotationRetention.SOURCE) public final class SourceAnnotation : kotlin.Annotation {
|
||||
public constructor SourceAnnotation()
|
||||
}
|
||||
|
||||
public/*package*/ open inner class SourceClass {
|
||||
public/*package*/ constructor SourceClass()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user