KAPT: Preserve the order of annotations in the stubs
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
This commit is contained in:
committed by
Alexander Udalov
parent
6f5ffeb6bb
commit
dd051c1556
@@ -1,7 +1,7 @@
|
||||
import kotlin.reflect.KClass;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
|
||||
@kotlin.Metadata()
|
||||
public abstract @interface Anno {
|
||||
|
||||
public abstract java.lang.Class<java.lang.Object> a();
|
||||
@@ -12,8 +12,8 @@ public abstract @interface Anno {
|
||||
|
||||
import kotlin.reflect.KClass;
|
||||
|
||||
@kotlin.Metadata()
|
||||
@Anno(a = ABC.class)
|
||||
@kotlin.Metadata()
|
||||
public final class ErrorInAnnotation {
|
||||
|
||||
public ErrorInAnnotation() {
|
||||
|
||||
Reference in New Issue
Block a user