< prev index next >

src/hotspot/share/interpreter/linkResolver.hpp

Print this page
rev 49028 : 8197405: Improve messages of AbstractMethodErrors and IncompatibleClassChangeErrors.
Reviewed-by: coleenp, dholmes, mdoerr

*** 345,351 **** --- 345,365 ---- // runtime resolving from attached method static void resolve_invoke(CallInfo& result, Handle& recv, const methodHandle& attached_method, Bytecodes::Code byte, TRAPS); + + public: + // Only resolved method known. + static void throw_abstract_method_error(const methodHandle& resolved_method, TRAPS) { + throw_abstract_method_error(resolved_method, NULL, NULL, CHECK); + } + // Resolved method and receiver klass know. + static void throw_abstract_method_error(const methodHandle& resolved_method, Klass *recv_klass, TRAPS) { + throw_abstract_method_error(resolved_method, NULL, recv_klass, CHECK); + } + // Selected method is abstract. + static void throw_abstract_method_error(const methodHandle& resolved_method, + const methodHandle& selected_method, + Klass *recv_klass, TRAPS); }; #endif // SHARE_VM_INTERPRETER_LINKRESOLVER_HPP
< prev index next >