KT-2704 Remove support for enum-entry constructor generation in the front-end code

#KT-2704 Fixed
This commit is contained in:
Andrey Breslav
2012-08-30 15:23:38 +04:00
parent a45bae63ab
commit 42bf62f870
5 changed files with 12 additions and 37 deletions
@@ -1047,7 +1047,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
if (declaration instanceof JetClassObject) {
// done earlier in order to have accessors
}
else if (declaration instanceof JetEnumEntry && !((JetEnumEntry) declaration).hasPrimaryConstructor()) {
else if (declaration instanceof JetEnumEntry) {
String name = declaration.getName();
final String desc = "L" + typeMapper.mapType(descriptor.getDefaultType(), JetTypeMapperMode.IMPL).getInternalName() + ";";
v.newField(declaration, ACC_PUBLIC | ACC_ENUM | ACC_STATIC | ACC_FINAL, name, desc, null, null);