hg: jdk/sandbox: 8218628: Add detailed message to NullPointerException describing what is null.

chris.hegarty at oracle.com chris.hegarty at oracle.com
Thu Oct 17 09:15:18 UTC 2019


Changeset: e3618c902d17
Author:    goetz
Date:      2019-10-14 11:36 +0200
URL:       https://hg.openjdk.java.net/jdk/sandbox/rev/e3618c902d17

8218628: Add detailed message to NullPointerException describing what is null.
Summary: This is the implementation of JEP 358: Helpful NullPointerExceptions.
Reviewed-by: coleenp, clanger, rschmelter, rriggs, forax, mr

! make/hotspot/symbols/symbols-unix
! src/hotspot/share/classfile/javaClasses.cpp
! src/hotspot/share/classfile/javaClasses.hpp
! src/hotspot/share/classfile/systemDictionary.hpp
! src/hotspot/share/classfile/vmSymbols.hpp
! src/hotspot/share/include/jvm.h
+ src/hotspot/share/interpreter/bytecodeUtils.cpp
+ src/hotspot/share/interpreter/bytecodeUtils.hpp
! src/hotspot/share/prims/jvm.cpp
! src/hotspot/share/runtime/globals.hpp
! src/java.base/share/classes/java/lang/NullPointerException.java
+ src/java.base/share/native/libjava/NullPointerException.c
+ test/hotspot/jtreg/runtime/exceptionMsgs/NullPointerException/NPEInHiddenTopFrameTest.java
+ test/hotspot/jtreg/runtime/exceptionMsgs/NullPointerException/NullPointerExceptionTest.java
+ test/hotspot/jtreg/runtime/exceptionMsgs/NullPointerException/SuppressMessagesTest.java



More information about the jdk-sandbox-changes mailing list