Handle java raw types in IR
Raw type Q is represented as a flexible type Q<B1, ... Bn> .. Q<*, ... *> where Bi is a representative upper bound of the corresponding ith type parameter of Q. When mapping generic signature, JVM takes type arguments of lower bound (which is 'Q<B1, ..., Bn>'). There is still some difference in how JVM and JVM_IR handle raw type in signature. It requires additional investigation.
This commit is contained in:
+5
@@ -149,6 +149,11 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/privateNestedClassInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rawTypeInSignature.kt")
|
||||
public void testRawTypeInSignature() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("samAdapterAndInlinedOne.kt")
|
||||
public void testSamAdapterAndInlinedOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/samAdapterAndInlinedOne.kt");
|
||||
|
||||
+5
@@ -149,6 +149,11 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes
|
||||
runTest("compiler/testData/codegen/bytecodeListing/privateNestedClassInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rawTypeInSignature.kt")
|
||||
public void testRawTypeInSignature() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("samAdapterAndInlinedOne.kt")
|
||||
public void testSamAdapterAndInlinedOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeListing/samAdapterAndInlinedOne.kt");
|
||||
|
||||
@@ -2039,6 +2039,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
||||
runTest("compiler/testData/ir/irText/types/localVariableOfIntersectionType_NI.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rawTypeInSignature.kt")
|
||||
public void testRawTypeInSignature() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/types/rawTypeInSignature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("receiverOfIntersectionType.kt")
|
||||
public void testReceiverOfIntersectionType() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/types/receiverOfIntersectionType.kt");
|
||||
|
||||
Reference in New Issue
Block a user