langtools/src/share/classes/com/sun/tools/javac/comp/Resolve.java
changeset 8032 e1aa25ccdabb
parent 7681 1f0819a3341f
child 8036 17b976649c61
equal deleted inserted replaced
8031:d5fe2c1cecfc 8032:e1aa25ccdabb
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2011, 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
   677                       boolean allowBoxing,
   677                       boolean allowBoxing,
   678                       boolean useVarargs,
   678                       boolean useVarargs,
   679                       boolean operator) {
   679                       boolean operator) {
   680         if (sym.kind == ERR) return bestSoFar;
   680         if (sym.kind == ERR) return bestSoFar;
   681         if (!sym.isInheritedIn(site.tsym, types)) return bestSoFar;
   681         if (!sym.isInheritedIn(site.tsym, types)) return bestSoFar;
   682         assert sym.kind < AMBIGUOUS;
   682         Assert.check(sym.kind < AMBIGUOUS);
   683         try {
   683         try {
   684             rawInstantiate(env, site, sym, argtypes, typeargtypes,
   684             rawInstantiate(env, site, sym, argtypes, typeargtypes,
   685                                allowBoxing, useVarargs, Warner.noWarnings);
   685                                allowBoxing, useVarargs, Warner.noWarnings);
   686         } catch (InapplicableMethodException ex) {
   686         } catch (InapplicableMethodException ex) {
   687             switch (bestSoFar.kind) {
   687             switch (bestSoFar.kind) {