mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8003557: NPG: Klass* const k should be const Klass* k
With NPG, const KlassOop klass which is in fact a definition converted to Klass* const, which is not the original intention. The right usage is converting them to const Klass*. Reviewed-by: coleenp, kvn
This commit is contained in:
parent
8d3d80dbc9
commit
c6aa9c656f
20 changed files with 62 additions and 64 deletions
|
@ -362,7 +362,7 @@ void TypeOrigin::print_on(outputStream* str) const {
|
|||
}
|
||||
#endif
|
||||
|
||||
void ErrorContext::details(outputStream* ss, Method* method) const {
|
||||
void ErrorContext::details(outputStream* ss, const Method* method) const {
|
||||
if (is_valid()) {
|
||||
ss->print_cr("");
|
||||
ss->print_cr("Exception Details:");
|
||||
|
@ -435,7 +435,7 @@ void ErrorContext::reason_details(outputStream* ss) const {
|
|||
ss->print_cr("");
|
||||
}
|
||||
|
||||
void ErrorContext::location_details(outputStream* ss, Method* method) const {
|
||||
void ErrorContext::location_details(outputStream* ss, const Method* method) const {
|
||||
if (_bci != -1 && method != NULL) {
|
||||
streamIndentor si(ss);
|
||||
const char* bytecode_name = "<invalid>";
|
||||
|
@ -470,7 +470,7 @@ void ErrorContext::frame_details(outputStream* ss) const {
|
|||
}
|
||||
}
|
||||
|
||||
void ErrorContext::bytecode_details(outputStream* ss, Method* method) const {
|
||||
void ErrorContext::bytecode_details(outputStream* ss, const Method* method) const {
|
||||
if (method != NULL) {
|
||||
streamIndentor si(ss);
|
||||
ss->indent().print_cr("Bytecode:");
|
||||
|
@ -479,7 +479,7 @@ void ErrorContext::bytecode_details(outputStream* ss, Method* method) const {
|
|||
}
|
||||
}
|
||||
|
||||
void ErrorContext::handler_details(outputStream* ss, Method* method) const {
|
||||
void ErrorContext::handler_details(outputStream* ss, const Method* method) const {
|
||||
if (method != NULL) {
|
||||
streamIndentor si(ss);
|
||||
ExceptionTable table(method);
|
||||
|
@ -494,7 +494,7 @@ void ErrorContext::handler_details(outputStream* ss, Method* method) const {
|
|||
}
|
||||
}
|
||||
|
||||
void ErrorContext::stackmap_details(outputStream* ss, Method* method) const {
|
||||
void ErrorContext::stackmap_details(outputStream* ss, const Method* method) const {
|
||||
if (method != NULL && method->has_stackmap_table()) {
|
||||
streamIndentor si(ss);
|
||||
ss->indent().print_cr("Stackmap Table:");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue