IDEA-127533 int field is displayed as char

This commit is contained in:
Egor.Ushakov
2017-04-26 21:11:10 +03:00
parent 195dabf6e6
commit e44ba9905e
10 changed files with 488 additions and 3 deletions

View File

@@ -442,6 +442,11 @@ public class ClassWriter {
}
else {
buffer.append(" = ");
if (initializer.type == Exprent.EXPRENT_CONST) {
((ConstExprent) initializer).adjustConstType(fieldType);
}
// FIXME: special case field initializer. Can map to more than one method (constructor) and bytecode intruction.
buffer.append(initializer.toJava(indent, tracer));
}