diff --git a/compiler/testData/loadJava/compiledJava/WildcardBounds.java b/compiler/testData/loadJava/compiledJava/WildcardBounds.java new file mode 100644 index 00000000000..997d3015a2e --- /dev/null +++ b/compiler/testData/loadJava/compiledJava/WildcardBounds.java @@ -0,0 +1,9 @@ +package test; + +import java.lang.CharSequence; + +public class WildcardBounds { + static class A {} + + void foo(A x, A y) {} +} diff --git a/compiler/testData/loadJava/compiledJava/WildcardBounds.txt b/compiler/testData/loadJava/compiledJava/WildcardBounds.txt new file mode 100644 index 00000000000..7ce97495e19 --- /dev/null +++ b/compiler/testData/loadJava/compiledJava/WildcardBounds.txt @@ -0,0 +1,10 @@ +package test + +public open class WildcardBounds { + public constructor WildcardBounds() + public/*package*/ open fun foo(/*0*/ p0: test.WildcardBounds.A!, /*1*/ p1: test.WildcardBounds.A!): kotlin.Unit + + public/*package*/ open class A { + public/*package*/ constructor A() + } +} diff --git a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/LoadJavaTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/LoadJavaTestGenerated.java index ce3efb3fe99..b8cf8d2c37a 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/LoadJavaTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/LoadJavaTestGenerated.java @@ -283,6 +283,12 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest { doTestCompiledJava(fileName); } + @TestMetadata("WildcardBounds.java") + public void testWildcardBounds() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/WildcardBounds.java"); + doTestCompiledJava(fileName); + } + @TestMetadata("compiler/testData/loadJava/compiledJava/annotations") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) diff --git a/compiler/tests/org/jetbrains/kotlin/jvm/runtime/JvmRuntimeDescriptorLoaderTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/jvm/runtime/JvmRuntimeDescriptorLoaderTestGenerated.java index a014c2941cd..225d0edc8f4 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/runtime/JvmRuntimeDescriptorLoaderTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/jvm/runtime/JvmRuntimeDescriptorLoaderTestGenerated.java @@ -3334,6 +3334,12 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD doTest(fileName); } + @TestMetadata("WildcardBounds.java") + public void testWildcardBounds() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/WildcardBounds.java"); + doTest(fileName); + } + @TestMetadata("compiler/testData/loadJava/compiledJava/annotations") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class)