[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:
+5
@@ -24054,6 +24054,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/floatOperations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inJavaPackage.kt")
|
||||
public void testInJavaPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/inJavaPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intOperations.kt")
|
||||
public void testIntOperations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/involvesIrInterpreter/intOperations.kt");
|
||||
|
||||
Reference in New Issue
Block a user