hotspot/src/share/vm/code/dependencies.cpp
changeset 20391 7b146c5ebb18
parent 18439 725ce18186b3
child 22506 0759c126204d
child 22201 9c2ccfa3a5fe
equal deleted inserted replaced
20390:a86c9ed78205 20391:7b146c5ebb18
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2013, 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.
     7  * published by the Free Software Foundation.
   810       // The override story is complex when packages get involved.
   810       // The override story is complex when packages get involved.
   811       return true;  // Must punt the assertion to true.
   811       return true;  // Must punt the assertion to true.
   812     Klass* k = ctxk;
   812     Klass* k = ctxk;
   813     Method* lm = k->lookup_method(m->name(), m->signature());
   813     Method* lm = k->lookup_method(m->name(), m->signature());
   814     if (lm == NULL && k->oop_is_instance()) {
   814     if (lm == NULL && k->oop_is_instance()) {
   815       // It might be an abstract interface method, devoid of mirandas.
   815       // It might be an interface method
   816       lm = ((InstanceKlass*)k)->lookup_method_in_all_interfaces(m->name(),
   816         lm = ((InstanceKlass*)k)->lookup_method_in_ordered_interfaces(m->name(),
   817                                                                 m->signature());
   817                                                                 m->signature());
   818     }
   818     }
   819     if (lm == m)
   819     if (lm == m)
   820       // Method m is inherited into ctxk.
   820       // Method m is inherited into ctxk.
   821       return true;
   821       return true;