diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/library/my/Base.java b/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/library/my/Base.java new file mode 100644 index 00000000000..47e33211029 --- /dev/null +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/library/my/Base.java @@ -0,0 +1,4 @@ +package my; +public class Base { + private Some some; +} diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/library/my/Some.java b/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/library/my/Some.java new file mode 100644 index 00000000000..bee190d290a --- /dev/null +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/library/my/Some.java @@ -0,0 +1,5 @@ +package my; +public class Some { + private int foo = 42; + public int getFoo() { return foo; } +} diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/output.txt b/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/output.txt new file mode 100644 index 00000000000..d86bac9de59 --- /dev/null +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/output.txt @@ -0,0 +1 @@ +OK diff --git a/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/source.kt b/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/source.kt new file mode 100644 index 00000000000..2929e9cedb1 --- /dev/null +++ b/compiler/testData/compileKotlinAgainstCustomBinaries/nonTransitiveDependencyWithJavac/source.kt @@ -0,0 +1,2 @@ +package my +class First : Base() diff --git a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstCustomBinariesTest.kt b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstCustomBinariesTest.kt index f5226f119f0..d13dbaf6889 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstCustomBinariesTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/jvm/compiler/CompileKotlinAgainstCustomBinariesTest.kt @@ -203,6 +203,10 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration doTestBrokenLibrary("library", "a/A.class") } + fun testNonTransitiveDependencyWithJavac() { + doTestBrokenLibrary("library", "my/Some.class", additionalOptions = listOf("-Xuse-javac", "-Xcompile-java")) + } + fun testComputeSupertypeWithMissingDependency() { doTestBrokenLibrary("library", "a/A.class") }