RFR 8162477: [JVMCI] assert(wf.check_method_context(ctxk, m)) failed: proper context

Tom Rodriguez tom.rodriguez at oracle.com
Mon Jul 25 16:54:50 UTC 2016

http://cr.openjdk.java.net/~never/8162477/webrev <http://cr.openjdk.java.net/~never/8162477/webrev>
https://bugs.openjdk.java.net/browse/JDK-8162477 <https://bugs.openjdk.java.net/browse/JDK-8162477>

While looking up an interface method in a class using Dependencies::find_unique_concrete_method, Dependencies::check_method_context can fail if the method is declared in two interfaces that both define the method. 

interface I { void m(); }
interface J { void m(); }
abstract class C implements I, J { }

Resolving J.m against C asserts because the current code expects I.m since it’s the first occurrence of the name and signature in the ordered interfaces.  This only causes an assertion failure and find_unique_concrete_method just returns null as there is nothing find.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160725/8cecf62e/attachment.html>

More information about the hotspot-compiler-dev mailing list