langtools/src/share/classes/com/sun/tools/javac/tree/TreeMaker.java
changeset 22154 3c8d86bf756b
parent 20244 d627dd086b41
child 22163 3651128c74eb
equal deleted inserted replaced
22153:f9f06fcca59d 22154:3c8d86bf756b
   755         } else if (value instanceof Byte) {
   755         } else if (value instanceof Byte) {
   756             result = Literal(BYTE, value).
   756             result = Literal(BYTE, value).
   757                 setType(syms.byteType.constType(value));
   757                 setType(syms.byteType.constType(value));
   758         } else if (value instanceof Character) {
   758         } else if (value instanceof Character) {
   759             int v = (int) (((Character) value).toString().charAt(0));
   759             int v = (int) (((Character) value).toString().charAt(0));
   760             result = Literal(CHAR, value).
   760             result = Literal(CHAR, v).
   761                 setType(syms.charType.constType(v));
   761                 setType(syms.charType.constType(v));
   762         } else if (value instanceof Double) {
   762         } else if (value instanceof Double) {
   763             result = Literal(DOUBLE, value).
   763             result = Literal(DOUBLE, value).
   764                 setType(syms.doubleType.constType(value));
   764                 setType(syms.doubleType.constType(value));
   765         } else if (value instanceof Float) {
   765         } else if (value instanceof Float) {