author | hseigel |
Wed, 01 Mar 2017 08:00:02 -0500 | |
changeset 46194 | 5596e6f63072 |
parent 40059 | c2304140ed64 |
permissions | -rw-r--r-- |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
1 |
/* |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
2 |
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
4 |
* |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
8 |
* |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
13 |
* accompanied this code). |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
14 |
* |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
18 |
* |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
21 |
* questions. |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
22 |
* |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
23 |
*/ |
40059 | 24 |
super class compiler/linkage/I |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
25 |
version 52:0 |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
26 |
{ |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
27 |
|
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
28 |
} |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
29 |
|
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
30 |
|
40059 | 31 |
super class compiler/linkage/CallSites |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
32 |
version 52:0 |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
33 |
{ |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
34 |
|
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
35 |
// Non-existent methods. |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
36 |
|
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
37 |
// I.m1()V vs I.m1(I)V |
40059 | 38 |
public static Method testI1:"(Lcompiler/linkage/I;)V" |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
39 |
stack 1 locals 1 |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
40 |
{ |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
41 |
aload_0; |
40059 | 42 |
invokeinterface InterfaceMethod compiler/linkage/I."m1":"()V", 1; // throws NSME |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
43 |
return; |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
44 |
} |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
45 |
|
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
46 |
// X.m1()V vs X.m1(I)V |
40059 | 47 |
public static Method testX1:"(Lcompiler/linkage/X;)V" |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
48 |
stack 1 locals 1 |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
49 |
{ |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
50 |
aload_0; |
40059 | 51 |
invokevirtual Method compiler/linkage/X."m1":"()V"; // throws NSME |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
52 |
return; |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
53 |
} |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
54 |
|
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
55 |
// invokestatic of instance methods. |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
56 |
|
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
57 |
public static Method testI2:"()V" |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
58 |
stack 1 locals 0 |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
59 |
{ |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
60 |
iconst_0; |
40059 | 61 |
invokestatic InterfaceMethod compiler/linkage/I."m1":"(I)V"; // throws ICCE |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
62 |
return; |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
63 |
} |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
64 |
|
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
65 |
public static Method testX2:"()V" |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
66 |
stack 1 locals 0 |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
67 |
{ |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
68 |
iconst_0; |
40059 | 69 |
invokestatic Method compiler/linkage/X."m1":"(I)V"; // throws ICCE |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
70 |
return; |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
71 |
} |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
72 |
|
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
73 |
// Virtual invocation of static methods. |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
74 |
|
40059 | 75 |
public static Method testI3:"(Lcompiler/linkage/I;)V" |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
76 |
stack 1 locals 1 |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
77 |
{ |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
78 |
aload_0; |
40059 | 79 |
invokeinterface InterfaceMethod compiler/linkage/I."s1":"()V", 1; // throws ICCE |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
80 |
return; |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
81 |
} |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
82 |
|
40059 | 83 |
public static Method testX3:"(Lcompiler/linkage/X;)V" |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
84 |
stack 1 locals 1 |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
85 |
{ |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
86 |
aload_0; |
40059 | 87 |
invokevirtual Method compiler/linkage/X."s1":"()V"; // throws ICCE |
38132
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
88 |
return; |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
89 |
} |
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
90 |
|
ba888a4f352a
8154172: C1: NPE is thrown instead of linkage error when invoking nonexistent method
vlivanov
parents:
diff
changeset
|
91 |
} // end Class CallSites |