author | chegar |
Thu, 17 Oct 2019 20:54:25 +0100 | |
branch | datagramsocketimpl-branch |
changeset 58679 | 9c3209ff7550 |
parent 58678 | 9cf78a70fa4f |
parent 55552 | 9bd13d6dea77 |
permissions | -rw-r--r-- |
55497
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
1 |
/* |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
2 |
* Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved. |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
4 |
* |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
8 |
* |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
13 |
* accompanied this code). |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
14 |
* |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
18 |
* |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
21 |
* questions. |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
22 |
* |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
23 |
*/ |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
24 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
25 |
package invokespecial; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
26 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
27 |
import java.lang.reflect.Method; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
28 |
import java.lang.reflect.Modifier; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
29 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
30 |
public class Checker extends shared.Checker { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
31 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
32 |
public Checker(Class staticTargetClass, Class dynamicTargetClass) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
33 |
super(staticTargetClass, dynamicTargetClass); |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
34 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
35 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
36 |
public String check (Class callerClass) { |
55552 | 37 |
// If objectref is null, the invokespecial instruction throws a NullPointerException. |
55497
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
38 |
if (dynamicTargetClass == null) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
39 |
return "java.lang.NullPointerException"; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
40 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
41 |
|
55552 | 42 |
// TODO: find a citation from spec for this case |
55497
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
43 |
Method resolvedMethod; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
44 |
try { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
45 |
// May throw VerifyError |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
46 |
resolvedMethod = getMethodInHierarchy(staticTargetClass); |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
47 |
} catch (Throwable e) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
48 |
return e.getClass().getName(); |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
49 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
50 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
51 |
if (resolvedMethod == null) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
52 |
return "java.lang.NoSuchMethodError"; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
53 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
54 |
|
55552 | 55 |
// If: |
56 |
// - the resolved method is protected (4.7) |
|
57 |
// - it is a member of a superclass of the current class |
|
58 |
// - the method is not declared in the same run-time package (5.3) as the current class |
|
59 |
// then: |
|
60 |
// the class of objectref must be either the current class or a subclass of the |
|
61 |
// current class. |
|
55497
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
62 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
63 |
if (Modifier.isProtected(resolvedMethod.getModifiers())) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
64 |
Method methodInSuperclass = getMethodInHierarchy(resolvedMethod.getDeclaringClass().getSuperclass()); |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
65 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
66 |
if (methodInSuperclass != null) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
67 |
String resolvedMethodPkg = getClassPackageName(resolvedMethod.getDeclaringClass()); |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
68 |
String methodInSuperclassPkg = getClassPackageName(methodInSuperclass.getDeclaringClass()); |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
69 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
70 |
if (!resolvedMethodPkg.equals(methodInSuperclassPkg)) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
71 |
//TODO: clarify this |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
72 |
// if (callerClass == methodInSuperclass.getDeclaringClass()) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
73 |
// return "java.lang.IllegalAccessError"; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
74 |
// } |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
75 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
76 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
77 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
78 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
79 |
/* |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
80 |
* The resolved method is selected for invocation unless all of |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
81 |
* the following conditions are true: |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
82 |
* * TODO: The ACC_SUPER flag (see Table 4.1, "Class access and property |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
83 |
* modifiers") is set for the current class. |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
84 |
* * The class of the resolved method is a superclass of the |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
85 |
* current class - assumed by construction procedure |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
86 |
* |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
87 |
* * The resolved method is not an instance initialization method (3.9). |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
88 |
*/ |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
89 |
if (!"<init>".equals(methodName)) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
90 |
/* |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
91 |
* Let C be the direct superclass of the current class: |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
92 |
* * If C contains a declaration for an instance method with the same |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
93 |
* name and descriptor as the resolved method, then this method will be |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
94 |
* invoked. The lookup procedure terminates. |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
95 |
* * Otherwise, if C has a superclass, this same lookup procedure is |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
96 |
* performed recursively using the direct superclass of C. The method to |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
97 |
* be invoked is the result of the recursive invocation of this lookup |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
98 |
* procedure. |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
99 |
* * Otherwise, an AbstractMethodError is raised. |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
100 |
* TODO: so far, sometimes NSME is thrown |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
101 |
*/ |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
102 |
Class klass = dynamicTargetClass.getSuperclass(); |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
103 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
104 |
while (klass != Object.class) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
105 |
Method method = getDeclaredMethod(klass); |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
106 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
107 |
if (method != null) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
108 |
/* |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
109 |
* If the resolved method is a class (static) method, the |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
110 |
* invokespecial instruction throws an IncompatibleClassChangeError. |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
111 |
*/ |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
112 |
if (Modifier.isStatic(method.getModifiers())) { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
113 |
return "java.lang.IncompatibleClassChangeError"; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
114 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
115 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
116 |
// Check access rights |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
117 |
if ( checkAccess(method, callerClass) |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
118 |
// && !( |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
119 |
// Modifier.isProtected(method.getModifiers()) |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
120 |
// && ( |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
121 |
// staticTargetClass.isAssignableFrom(callerClass) |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
122 |
// || getClassPackageName(staticTargetClass).equals(getClassPackageName(callerClass)) |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
123 |
// ) |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
124 |
// |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
125 |
// ) |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
126 |
) |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
127 |
{ |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
128 |
return String.format("%s.%s" |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
129 |
, method.getDeclaringClass().getSimpleName() |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
130 |
, methodName |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
131 |
); |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
132 |
} else { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
133 |
// IAE is thrown when located method can't be accessed from the call site |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
134 |
return "java.lang.IllegalAccessError"; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
135 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
136 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
137 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
138 |
klass = klass.getSuperclass(); |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
139 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
140 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
141 |
return "java.lang.AbstractMethodError"; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
142 |
} else { |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
143 |
// The resolved method is an instance initialization method (3.9). |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
144 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
145 |
|
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
146 |
// TODO: change |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
147 |
return "---"; |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
148 |
} |
d3a33953b936
8224137: Analyze and port invocation tests to jtreg and co-locate to jdk repo
hseigel
parents:
diff
changeset
|
149 |
} |