Mercurial > hg > truffle
comparison src/share/vm/oops/klass.cpp @ 20527:8cb56c8cb30d
Merge
author | jiangli |
---|---|
date | Mon, 15 Sep 2014 16:39:00 -0400 |
parents | 6e0cb14ce59b 54bc75c144b0 |
children | f0bedf980c65 |
comparison
equal
deleted
inserted
replaced
20411:fe1f65b0a2d8 | 20527:8cb56c8cb30d |
---|---|
128 bool Klass::compute_is_subtype_of(Klass* k) { | 128 bool Klass::compute_is_subtype_of(Klass* k) { |
129 assert(k->is_klass(), "argument must be a class"); | 129 assert(k->is_klass(), "argument must be a class"); |
130 return is_subclass_of(k); | 130 return is_subclass_of(k); |
131 } | 131 } |
132 | 132 |
133 Klass* Klass::find_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const { | |
134 #ifdef ASSERT | |
135 tty->print_cr("Error: find_field called on a klass oop." | |
136 " Likely error: reflection method does not correctly" | |
137 " wrap return value in a mirror object."); | |
138 #endif | |
139 ShouldNotReachHere(); | |
140 return NULL; | |
141 } | |
133 | 142 |
134 Method* Klass::uncached_lookup_method(Symbol* name, Symbol* signature, MethodLookupMode mode) const { | 143 Method* Klass::uncached_lookup_method(Symbol* name, Symbol* signature, MethodLookupMode mode) const { |
135 #ifdef ASSERT | 144 #ifdef ASSERT |
136 tty->print_cr("Error: uncached_lookup_method called on a klass oop." | 145 tty->print_cr("Error: uncached_lookup_method called on a klass oop." |
137 " Likely error: reflection method does not correctly" | 146 " Likely error: reflection method does not correctly" |