mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Refactor Java resolver components
- Move components from LazyJavaResolverContext to JavaResolverComponents - Drop LazyJavaClassResolver replacing it's usages with module resolver (now enum entries from another module as annotation arguments are being resolved, see test)
This commit is contained in:
@@ -7,5 +7,5 @@ public class KotlinA: AClass() {
|
||||
|
||||
fun paramA(p: AClass) {}
|
||||
|
||||
@AAnnotation fun annoA() {}
|
||||
@AAnnotation(AEnum.AX) fun annoA() {}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
package custom;
|
||||
|
||||
public @interface AAnnotation {
|
||||
|
||||
AEnum value();
|
||||
}
|
||||
@@ -3,6 +3,6 @@ package custom;
|
||||
public class AClass {
|
||||
public AClass returnA() {}
|
||||
public void paramA(AClass a) {}
|
||||
@AAnnotation
|
||||
@AAnnotation(AEnum.AX)
|
||||
public void annoA() {}
|
||||
}
|
||||
5
compiler/testData/multiModule/java/custom/a/custom/AEnum.java
vendored
Normal file
5
compiler/testData/multiModule/java/custom/a/custom/AEnum.java
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
package custom;
|
||||
|
||||
public enum AEnum {
|
||||
AX;
|
||||
}
|
||||
Reference in New Issue
Block a user