mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-04 08:31:30 +00:00
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:
16
compiler/testData/loadJava/compiledJava/EnumMembers.java
Normal file
16
compiler/testData/loadJava/compiledJava/EnumMembers.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package test;
|
||||
|
||||
public enum EnumMembers {
|
||||
FIRST(true),
|
||||
SECOND(false);
|
||||
|
||||
public final boolean isFirst;
|
||||
|
||||
private EnumMembers(boolean isFirst) {
|
||||
this.isFirst = isFirst;
|
||||
}
|
||||
|
||||
public boolean first() {
|
||||
return isFirst;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user