mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8139163: InstanceKlass::cast passes through NULL
Reduce raw (InstanceKlass*) casts and InstanceKlass::cast, which no long allows null Reviewed-by: twisti, kbarrett
This commit is contained in:
parent
25cc742a8f
commit
5179fc3488
43 changed files with 215 additions and 252 deletions
|
@ -299,10 +299,7 @@ int Method::size(bool is_native) {
|
|||
|
||||
|
||||
Symbol* Method::klass_name() const {
|
||||
Klass* k = method_holder();
|
||||
assert(k->is_klass(), "must be klass");
|
||||
InstanceKlass* ik = (InstanceKlass*) k;
|
||||
return ik->name();
|
||||
return method_holder()->name();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue