Change enum entry resolution strategy in JDR
Enum entry is now resolved into a class with a class object, which inherits from the former class, as in the other parts of the compiler. Create a special class EnumEntrySyntheticClassDescriptor which will be reused in deserialization later
This commit is contained in:
@@ -1034,6 +1034,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/loadJava/compiledJava"), Pattern.compile("^(.+)\\.java$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("EnumMembers.java")
|
||||
public void testEnumMembers() throws Exception {
|
||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/EnumMembers.java");
|
||||
}
|
||||
|
||||
@TestMetadata("JavaEnum.java")
|
||||
public void testJavaEnum() throws Exception {
|
||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/JavaEnum.java");
|
||||
|
||||
Reference in New Issue
Block a user