added test case for KT-1515
This commit is contained in:
@@ -23,6 +23,6 @@ import test.language.*;
|
|||||||
*/
|
*/
|
||||||
public class LanguageTestAllTest {
|
public class LanguageTestAllTest {
|
||||||
public static TestSuite suite() {
|
public static TestSuite suite() {
|
||||||
return new TestSuite(NullableCollectionsTest.class);
|
return new TestSuite(JavaClassTest.class, NullableCollectionsTest.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+20
@@ -2,6 +2,14 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="AntConfiguration">
|
<component name="AntConfiguration">
|
||||||
<defaultAnt bundledAnt="true" />
|
<defaultAnt bundledAnt="true" />
|
||||||
|
<buildFile url="file://$PROJECT_DIR$/build.xml">
|
||||||
|
<additionalClassPath />
|
||||||
|
<antReference projectDefault="true" />
|
||||||
|
<customJdkName value="" />
|
||||||
|
<maximumHeapSize value="128" />
|
||||||
|
<maximumStackSize value="2" />
|
||||||
|
<properties />
|
||||||
|
</buildFile>
|
||||||
</component>
|
</component>
|
||||||
<component name="CompilerConfiguration">
|
<component name="CompilerConfiguration">
|
||||||
<option name="DEFAULT_COMPILER" value="Javac" />
|
<option name="DEFAULT_COMPILER" value="Javac" />
|
||||||
@@ -68,6 +76,9 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/kdoc/kdoc.iml" filepath="$PROJECT_DIR$/kdoc/kdoc.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/kunit/kunit.iml" filepath="$PROJECT_DIR$/kunit/kunit.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/modules/modules.iml" filepath="$PROJECT_DIR$/modules/modules.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/runtests/runtests.iml" filepath="$PROJECT_DIR$/runtests/runtests.iml" />
|
<module fileurl="file://$PROJECT_DIR$/runtests/runtests.iml" filepath="$PROJECT_DIR$/runtests/runtests.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/stdlib/stdlib.iml" filepath="$PROJECT_DIR$/stdlib/stdlib.iml" />
|
<module fileurl="file://$PROJECT_DIR$/stdlib/stdlib.iml" filepath="$PROJECT_DIR$/stdlib/stdlib.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/testlib/testlib.iml" filepath="$PROJECT_DIR$/testlib/testlib.iml" />
|
<module fileurl="file://$PROJECT_DIR$/testlib/testlib.iml" filepath="$PROJECT_DIR$/testlib/testlib.iml" />
|
||||||
@@ -82,5 +93,14 @@
|
|||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="" vcs="Git" />
|
<mapping directory="" vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="KotlinRuntime">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$PROJECT_DIR$/lib/kotlin-runtime.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES />
|
||||||
|
</library>
|
||||||
|
</component>
|
||||||
</project>
|
</project>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package org.jetbrains.kotlin.support
|
||||||
|
|
||||||
|
fun loadAsserter(): Unit {
|
||||||
|
val c = javaClass<Runnable>()
|
||||||
|
println("class is $c")
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package test.language
|
||||||
|
|
||||||
|
import junit.framework.TestCase
|
||||||
|
import kotlin.test.*
|
||||||
|
|
||||||
|
import org.jetbrains.kotlin.support.*
|
||||||
|
|
||||||
|
class JavaClassTest : TestCase() {
|
||||||
|
|
||||||
|
fun testJavaClass() {
|
||||||
|
// TODO this function fails!
|
||||||
|
// see KT-1515
|
||||||
|
// loadAsserter()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user