< prev index next >
src/hotspot/share/classfile/javaClasses.hpp
Print this page
rev 56222 : 8218628: Add detailed message to NullPointerException describing what is null.
Summary: This is the implementation of JEP 358: Helpful NullPointerExceptions.
Reviewed-by: coleenp
@@ -517,11 +517,12 @@
trace_methods_offset = 0,
trace_bcis_offset = 1,
trace_mirrors_offset = 2,
trace_names_offset = 3,
trace_next_offset = 4,
- trace_size = 5,
+ trace_hidden_offset = 5,
+ trace_size = 6,
trace_chunk_size = 32
};
static int backtrace_offset;
static int detailMessage_offset;
@@ -567,10 +568,12 @@
static void print(oop throwable, outputStream* st);
static void print_stack_trace(Handle throwable, outputStream* st);
static void java_printStackTrace(Handle throwable, TRAPS);
// Debugging
friend class JavaClasses;
+ // Gets the method and bci of the top frame (TOS). Returns false if this failed.
+ static bool get_method_and_bci(oop throwable, Method** method, int* bci);
};
// Interface to java.lang.reflect.AccessibleObject objects
< prev index next >