Don't use external annotations in compiler
External annotations will be re-enabled in the IDE later. This fixes LazyJavaAnnotations which was breaking the contract of Annotations: findAnnotation(FqName) was looking for external annotations, while iterator() did not. This resulted in some inconsistencies in the compiler and IDE tests. The other way, i.e. making iterator() look up external annotations, would have been too costly for the compiler and with no clear benefit at the moment.
This commit is contained in:
@@ -43,12 +43,6 @@ public class KotlinLightClassTestGenerated extends AbstractKotlinLightClassTest
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/asJava/lightClasses/delegation"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("ExternalAnnotations.kt")
|
||||
public void testExternalAnnotations() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/delegation/ExternalAnnotations.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("Function.kt")
|
||||
public void testFunction() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/delegation/Function.kt");
|
||||
|
||||
Reference in New Issue
Block a user