mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
Support single Java source files in kotlinc arguments
E.g. "kotlinc foo.kt test/Bar.java" will compile foo.kt, and declarations from Bar.java will be accessible to Kotlin code in foo.kt. The change in AbstractTopLevelMembersInvocationTest is needed because an incorrect configuration was created in that test where a library jar was also a Java source root (the compiler is never configured this way in production), which led to an exception in JavaCoreProjectEnvironment#addSourcesToClasspath #KT-17697 Fixed
This commit is contained in:
5
compiler/testData/cli/jvm/singleJavaFileRoots/lib/classKinds/AnnotationClass.java
vendored
Normal file
5
compiler/testData/cli/jvm/singleJavaFileRoots/lib/classKinds/AnnotationClass.java
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
package lib.classKinds;
|
||||
|
||||
public @interface AnnotationClass {
|
||||
EnumClass value();
|
||||
}
|
||||
Reference in New Issue
Block a user