1.1 --- a/src/share/vm/oops/constantPool.cpp Fri Oct 16 19:25:10 2020 +0100 1.2 +++ b/src/share/vm/oops/constantPool.cpp Fri Oct 16 23:17:14 2020 +0100 1.3 @@ -504,7 +504,7 @@ 1.4 } 1.5 1.6 1.7 -Symbol* ConstantPool::klass_name_at(int which) { 1.8 +Symbol* ConstantPool::klass_name_at(int which) const { 1.9 assert(tag_at(which).is_unresolved_klass() || tag_at(which).is_klass(), 1.10 "Corrupted constant pool"); 1.11 // A resolved constantPool entry will contain a Klass*, otherwise a Symbol*.