[IR] Specify explicitly that classes from Java can be interpreted
In early prototypes of interpreter, it was easier to assume that all classes from Java can be interpreted and fix something if not. Check for Java declaration was done by checking that the package name is starting with "java". But this is actually wrong and can lead to errors when some code is declared in "java" something package, but is not from Java stdlib. #KT-60467 Fixed
This commit is contained in:
+12
@@ -23900,6 +23900,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/floatOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inJavaLangPackage.kt")
|
||||
public void testInJavaLangPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaLangPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inJavaPackage.kt")
|
||||
public void testInJavaPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intOperations.kt")
|
||||
public void testIntOperations() throws Exception {
|
||||
|
||||
+12
@@ -24364,6 +24364,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/floatOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inJavaLangPackage.kt")
|
||||
public void testInJavaLangPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaLangPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inJavaPackage.kt")
|
||||
public void testInJavaPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intOperations.kt")
|
||||
public void testIntOperations() throws Exception {
|
||||
|
||||
+12
@@ -23669,6 +23669,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/floatOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inJavaLangPackage.kt")
|
||||
public void testInJavaLangPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaLangPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inJavaPackage.kt")
|
||||
public void testInJavaPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intOperations.kt")
|
||||
public void testIntOperations() throws Exception {
|
||||
|
||||
+12
@@ -23901,6 +23901,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/floatOperations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inJavaLangPackage.kt")
|
||||
public void testInJavaLangPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaLangPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inJavaPackage.kt")
|
||||
public void testInJavaPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intOperations.kt")
|
||||
public void testIntOperations() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user