dd051c1556
Previously the annotations were included in reverse order. With this change they are kept in the same order as in the source file. This changes the test case for KT-23427 but that issue seems to relate to annotation arguments that are missing, not the order of repeatable annotations. This fixes KT-51087
54 lines
855 B
Plaintext
Vendored
54 lines
855 B
Plaintext
Vendored
import kotlin.reflect.KClass;
|
|
|
|
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
|
@kotlin.Metadata()
|
|
public abstract @interface Anno {
|
|
|
|
public abstract java.lang.Class<?> klass();
|
|
}
|
|
|
|
////////////////////
|
|
|
|
|
|
import kotlin.reflect.KClass;
|
|
|
|
@ABC()
|
|
@kotlin.Metadata()
|
|
public final class ErrorMissingAnnotation {
|
|
|
|
public ErrorMissingAnnotation() {
|
|
super();
|
|
}
|
|
}
|
|
|
|
////////////////////
|
|
|
|
|
|
import kotlin.reflect.KClass;
|
|
|
|
@ABC()
|
|
@CDE()
|
|
@kotlin.Metadata()
|
|
public final class ErrorMultipleMissingAnnotations {
|
|
|
|
public ErrorMultipleMissingAnnotations() {
|
|
super();
|
|
}
|
|
}
|
|
|
|
////////////////////
|
|
|
|
|
|
import kotlin.reflect.KClass;
|
|
|
|
@CDE()
|
|
@Anno(klass = ABC.class)
|
|
@ABC()
|
|
@kotlin.Metadata()
|
|
public final class ErrorSomeMissingAnnotations {
|
|
|
|
public ErrorSomeMissingAnnotations() {
|
|
super();
|
|
}
|
|
}
|