8308655: Narrow types of ConstantPool and ConstMethod returns

Reviewed-by: fparain, matsaave
This commit is contained in:
Coleen Phillimore 2023-05-25 11:52:40 +00:00
parent 5a0a238f67
commit 2599ada152
31 changed files with 162 additions and 161 deletions

View file

@ -1345,8 +1345,7 @@ void ClassLoader::record_result(JavaThread* current, InstanceKlass* ik,
const char* const file_name = file_name_for_class_name(class_name,
ik->name()->utf8_length());
assert(file_name != nullptr, "invariant");
ClassLoaderExt::record_result(classpath_index, ik, redefined);
ClassLoaderExt::record_result(checked_cast<s2>(classpath_index), ik, redefined);
}
#endif // INCLUDE_CDS