langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Lower.java
changeset 35355 817b3a285dbb
parent 34751 32ee3b176042
child 36526 3b41f1c69604
equal deleted inserted replaced
35354:a9c8e2634f92 35355:817b3a285dbb
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
  2205         case IDENT:
  2205         case IDENT:
  2206             JCIdent id = (JCIdent) rval;
  2206             JCIdent id = (JCIdent) rval;
  2207             if ((id.sym.flags() & FINAL) != 0 && id.sym.owner.kind == MTH)
  2207             if ((id.sym.flags() & FINAL) != 0 && id.sym.owner.kind == MTH)
  2208                 return builder.build(rval);
  2208                 return builder.build(rval);
  2209         }
  2209         }
       
  2210         Name name = TreeInfo.name(rval);
       
  2211         if (name == names._super)
       
  2212             return builder.build(rval);
  2210         VarSymbol var =
  2213         VarSymbol var =
  2211             new VarSymbol(FINAL|SYNTHETIC,
  2214             new VarSymbol(FINAL|SYNTHETIC,
  2212                           names.fromString(
  2215                           names.fromString(
  2213                                           target.syntheticNameChar()
  2216                                           target.syntheticNameChar()
  2214                                           + "" + rval.hashCode()),
  2217                                           + "" + rval.hashCode()),