Skip to content

Commit 0831247

Browse files
committed
[GR-71587] Removed ResolvedJavaType.getHostClass.
PullRequest: labsjdk-ce/245
2 parents 8e34cf6 + 2988a65 commit 0831247

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/meta/ResolvedJavaType.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,6 @@ default boolean declaresDefaultMethods() {
148148
*/
149149
boolean isAssignableFrom(ResolvedJavaType other);
150150

151-
/**
152-
* Returns {@code null} since support for VM anonymous class was removed by JDK-8243287. This
153-
* method is preserved for JVMCI backwards compatibility.
154-
*/
155-
@Deprecated
156-
default ResolvedJavaType getHostClass() {
157-
return null;
158-
}
159-
160151
/**
161152
* Returns true if this type is exactly the type {@link java.lang.Object}.
162153
*/

test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaMethod.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -702,23 +702,18 @@ private Method findTestMethod(Method apiMethod) {
702702

703703
// @formatter:off
704704
private static final String[] untestedApiMethods = {
705-
"newInstance",
706705
"getDeclaringClass",
707706
"getEncoding",
708707
"getProfilingInfo",
709708
"reprofile",
710-
"getCompilerStorage",
711709
"hasNeverInlineDirective",
712710
"canBeInlined",
713711
"shouldBeInlined",
714712
"getLineNumberTable",
715713
"isInVirtualMethodTable",
716714
"toParameterTypes",
717-
"getParameterAnnotation",
718715
"getSpeculationLog",
719-
"isFinal",
720-
"invoke",
721-
"$jacocoInit"
716+
"isFinal"
722717
};
723718
// @formatter:on
724719

test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,9 +1411,6 @@ public static void checkDeclaredAnnotationInfo(Class<?> clazz) {
14111411
"newArray",
14121412
"isInitialized",
14131413
"isLinked",
1414-
"getJavaClass",
1415-
"getObjectHub",
1416-
"getHostClass",
14171414
"hasFinalizableSubclass",
14181415
"hasFinalizer",
14191416
"isLocal",
@@ -1423,8 +1420,7 @@ public static void checkDeclaredAnnotationInfo(Class<?> clazz) {
14231420
"getEnclosingType",
14241421
"lookupType",
14251422
"isSealed", // tested with getPermittedSubclasses
1426-
"resolveField",
1427-
"$jacocoInit"
1423+
"resolveField"
14281424
};
14291425
// @formatter:on
14301426

0 commit comments

Comments
 (0)