Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/dependencies.cpp @ 12823:ac9cb1d5a202
8009130: Lambda: Fix access controls, loader constraints.
Summary: New default methods list with inherited superinterface methods
Reviewed-by: minqi, sspitsyn, coleenp
author | acorn |
---|---|
date | Mon, 07 Oct 2013 12:20:28 -0400 |
parents | e0c9a1d29eb4 |
children | 096c224171c4 ce86c36b8921 3aaa4b9966f6 709018897c81 |
comparison
equal
deleted
inserted
replaced
12822:cc4f5f8d885e | 12823:ac9cb1d5a202 |
---|---|
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; |