langtools/src/share/classes/com/sun/tools/javac/comp/Lower.java
changeset 14057 b4b0377b8dba
parent 13844 56339cf983a3
child 14259 fb94a1df0d53
equal deleted inserted replaced
14056:0ea78d6e0b7b 14057:b4b0377b8dba
  1996         case BYTE: case SHORT: case CHAR: case INT: case LONG: case FLOAT:
  1996         case BYTE: case SHORT: case CHAR: case INT: case LONG: case FLOAT:
  1997         case DOUBLE: case BOOLEAN: case VOID:
  1997         case DOUBLE: case BOOLEAN: case VOID:
  1998             // replace with <BoxedClass>.TYPE
  1998             // replace with <BoxedClass>.TYPE
  1999             ClassSymbol c = types.boxedClass(type);
  1999             ClassSymbol c = types.boxedClass(type);
  2000             Symbol typeSym =
  2000             Symbol typeSym =
  2001                 rs.access(
  2001                 rs.accessBase(
  2002                     rs.findIdentInType(attrEnv, c.type, names.TYPE, VAR),
  2002                     rs.findIdentInType(attrEnv, c.type, names.TYPE, VAR),
  2003                     pos, c.type, names.TYPE, true);
  2003                     pos, c.type, names.TYPE, true);
  2004             if (typeSym.kind == VAR)
  2004             if (typeSym.kind == VAR)
  2005                 ((VarSymbol)typeSym).getConstValue(); // ensure initializer is evaluated
  2005                 ((VarSymbol)typeSym).getConstValue(); // ensure initializer is evaluated
  2006             return make.QualIdent(typeSym);
  2006             return make.QualIdent(typeSym);