Add flag -Xno-new-java-annotation-targets
Do not generate TYPE_USE/TYPE_PARAMETER Java annotation targets when this flag is specified. #KT-53712 Fixed
This commit is contained in:
+10
-5
@@ -35,6 +35,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Annotations extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("noTypeUseIfDependOnJvm6.kt")
|
||||
public void ignoreNoTypeUseIfDependOnJvm6() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/noTypeUseIfDependOnJvm6.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noTypeUseIfFlagIsSpecified.kt")
|
||||
public void ignoreNoTypeUseIfFlagIsSpecified() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/noTypeUseIfFlagIsSpecified.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -238,11 +248,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noTypeUseIfDependOnJvm6.kt")
|
||||
public void testNoTypeUseIfDependOnJvm6() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/noTypeUseIfDependOnJvm6.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterAnnotationInDefaultImpls.kt")
|
||||
public void testParameterAnnotationInDefaultImpls() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/parameterAnnotationInDefaultImpls.kt");
|
||||
|
||||
Reference in New Issue
Block a user