Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/klass.cpp @ 17889:386dd1c71858
8033150: invokestatic: IncompatibleClassChangeError trying to invoke static method from a parent in presence of conflicting defaults.
Summary: A static method should be preferred during method resolution over an overpass, search the current class as well as its superclasses.
Reviewed-by: acorn, coleenp, kamg
author | lfoltan |
---|---|
date | Mon, 14 Apr 2014 14:27:45 -0400 |
parents | 9428a0b94204 |
children | 34862ced4a87 |
comparison
equal
deleted
inserted
replaced
17887:cd3c534f8f4a | 17889:386dd1c71858 |
---|---|
127 assert(k->is_klass(), "argument must be a class"); | 127 assert(k->is_klass(), "argument must be a class"); |
128 return is_subclass_of(k); | 128 return is_subclass_of(k); |
129 } | 129 } |
130 | 130 |
131 | 131 |
132 Method* Klass::uncached_lookup_method(Symbol* name, Symbol* signature) const { | 132 Method* Klass::uncached_lookup_method(Symbol* name, Symbol* signature, MethodLookupMode mode) const { |
133 #ifdef ASSERT | 133 #ifdef ASSERT |
134 tty->print_cr("Error: uncached_lookup_method called on a klass oop." | 134 tty->print_cr("Error: uncached_lookup_method called on a klass oop." |
135 " Likely error: reflection method does not correctly" | 135 " Likely error: reflection method does not correctly" |
136 " wrap return value in a mirror object."); | 136 " wrap return value in a mirror object."); |
137 #endif | 137 #endif |