author | goetz |
Mon, 14 Oct 2019 11:36:17 +0200 | |
changeset 58664 | e3618c902d17 |
permissions | -rw-r--r-- |
58664
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
1 |
/* |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
2 |
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
3 |
* Copyright (c) 2019 SAP SE. All rights reserved. |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
4 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
5 |
* |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
6 |
* This code is free software; you can redistribute it and/or modify it |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
7 |
* under the terms of the GNU General Public License version 2 only, as |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
8 |
* published by the Free Software Foundation. Oracle designates this |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
9 |
* particular file as subject to the "Classpath" exception as provided |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
10 |
* by Oracle in the LICENSE file that accompanied this code. |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
11 |
* |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
12 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
13 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
14 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
15 |
* version 2 for more details (a copy is included in the LICENSE file that |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
16 |
* accompanied this code). |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
17 |
* |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
18 |
* You should have received a copy of the GNU General Public License version |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
19 |
* 2 along with this work; if not, write to the Free Software Foundation, |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
20 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
21 |
* |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
22 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
23 |
* or visit www.oracle.com if you need additional information or have any |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
24 |
* questions. |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
25 |
*/ |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
26 |
|
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
27 |
#include "jni.h" |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
28 |
#include "jvm.h" |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
29 |
|
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
30 |
#include "java_lang_NullPointerException.h" |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
31 |
|
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
32 |
JNIEXPORT jstring JNICALL |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
33 |
Java_java_lang_NullPointerException_getExtendedNPEMessage(JNIEnv *env, jobject throwable) |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
34 |
{ |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
35 |
return JVM_GetExtendedNPEMessage(env, throwable); |
e3618c902d17
8218628: Add detailed message to NullPointerException describing what is null.
goetz
parents:
diff
changeset
|
36 |
} |