< prev index next >

src/hotspot/share/classfile/defaultMethods.cpp

Print this page

        

*** 472,482 **** str->indent().print_cr("%s: %s", _exception_name->as_C_string(), _exception_message->as_C_string()); } }; Symbol* MethodFamily::generate_no_defaults_message(TRAPS) const { ! return SymbolTable::new_symbol("No qualifying defaults found", THREAD); } Symbol* MethodFamily::generate_method_message(Symbol *klass_name, Method* method, TRAPS) const { stringStream ss; ss.print("Method "); --- 472,483 ---- str->indent().print_cr("%s: %s", _exception_name->as_C_string(), _exception_message->as_C_string()); } }; Symbol* MethodFamily::generate_no_defaults_message(TRAPS) const { ! Symbol* s = SymbolTable::new_symbol("No qualifying defaults found", CHECK_NULL); ! return s; } Symbol* MethodFamily::generate_method_message(Symbol *klass_name, Method* method, TRAPS) const { stringStream ss; ss.print("Method ");
*** 485,495 **** ss.write((const char*)klass_name->bytes(), klass_name->utf8_length()); ss.print("."); ss.write((const char*)name->bytes(), name->utf8_length()); ss.write((const char*)signature->bytes(), signature->utf8_length()); ss.print(" is abstract"); ! return SymbolTable::new_symbol(ss.base(), (int)ss.size(), THREAD); } Symbol* MethodFamily::generate_conflicts_message(GrowableArray<Method*>* methods, TRAPS) const { stringStream ss; ss.print("Conflicting default methods:"); --- 486,497 ---- ss.write((const char*)klass_name->bytes(), klass_name->utf8_length()); ss.print("."); ss.write((const char*)name->bytes(), name->utf8_length()); ss.write((const char*)signature->bytes(), signature->utf8_length()); ss.print(" is abstract"); ! Symbol* s = SymbolTable::new_symbol(ss.base(), (int)ss.size(), CHECK_NULL); ! return s; } Symbol* MethodFamily::generate_conflicts_message(GrowableArray<Method*>* methods, TRAPS) const { stringStream ss; ss.print("Conflicting default methods:");
*** 500,510 **** ss.print(" "); ss.write((const char*)klass->bytes(), klass->utf8_length()); ss.print("."); ss.write((const char*)name->bytes(), name->utf8_length()); } ! return SymbolTable::new_symbol(ss.base(), (int)ss.size(), THREAD); } class StateRestorer; --- 502,513 ---- ss.print(" "); ss.write((const char*)klass->bytes(), klass->utf8_length()); ss.print("."); ss.write((const char*)name->bytes(), name->utf8_length()); } ! Symbol* s = SymbolTable::new_symbol(ss.base(), (int)ss.size(), CHECK_NULL); ! return s; } class StateRestorer;
< prev index next >