langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Lower.java
changeset 29293 1583c6dd6df7
parent 29292 c10d63c667cd
child 29842 826ac2519523
equal deleted inserted replaced
29292:c10d63c667cd 29293:1583c6dd6df7
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2015, 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
  1035         }
  1035         }
  1036         MethodSymbol[] accessors = accessSyms.get(vsym);
  1036         MethodSymbol[] accessors = accessSyms.get(vsym);
  1037         MethodSymbol accessor = accessors[acode];
  1037         MethodSymbol accessor = accessors[acode];
  1038         if (accessor == null) {
  1038         if (accessor == null) {
  1039             accessor = new MethodSymbol(
  1039             accessor = new MethodSymbol(
  1040                 STATIC | SYNTHETIC,
  1040                 STATIC | SYNTHETIC | (accOwner.isInterface() ? PUBLIC : 0),
  1041                 accessName(anum.intValue(), acode),
  1041                 accessName(anum.intValue(), acode),
  1042                 new MethodType(argtypes, restype, thrown, syms.methodClass),
  1042                 new MethodType(argtypes, restype, thrown, syms.methodClass),
  1043                 accOwner);
  1043                 accOwner);
  1044             enterSynthetic(tree.pos(), accessor, accOwner.members());
  1044             enterSynthetic(tree.pos(), accessor, accOwner.members());
  1045             accessors[acode] = accessor;
  1045             accessors[acode] = accessor;