author | egahlin |
Tue, 26 Nov 2019 17:00:57 +0100 | |
changeset 59274 | eb3e2a5c2bcd |
parent 48514 | 9608f7f41c4e |
permissions | -rw-r--r-- |
48514
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
1 |
/* |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
2 |
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
4 |
* |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
8 |
* |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
13 |
* accompanied this code). |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
14 |
* |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
18 |
* |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
21 |
* questions. |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
22 |
* |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
23 |
*/ |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
24 |
|
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
25 |
package runtime/invokedynamic; |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
26 |
|
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
27 |
super public class MethodHandleConstantHelper |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
28 |
version 51:0 |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
29 |
{ |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
30 |
|
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
31 |
static Field "testField":"I"; |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
32 |
|
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
33 |
static Method "testMethod":"()V" |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
34 |
{ |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
35 |
return; |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
36 |
} |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
37 |
|
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
38 |
public static Method "testMethodSignatureResolutionFailure":"()V" |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
39 |
stack 1 locals 1 |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
40 |
{ |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
41 |
ldc MethodHandle REF_invokeStatic: |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
42 |
MethodHandleConstantHelper.testMethod: |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
43 |
"(LNotExist;)V"; |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
44 |
|
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
45 |
return; |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
46 |
} |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
47 |
|
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
48 |
public static Method "testFieldSignatureResolutionFailure":"()V" |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
49 |
stack 1 locals 1 |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
50 |
{ |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
51 |
ldc MethodHandle REF_getField: |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
52 |
MethodHandleConstantHelper.testField: |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
53 |
"LNotExist;"; |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
54 |
|
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
55 |
return; |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
56 |
} |
9608f7f41c4e
8188145: MethodHandle resolution should follow JVMS sequence of lookup by name & type before type descriptor resolution
vlivanov
parents:
diff
changeset
|
57 |
} |