8267338: [JVMCI] revive JVMCI API removed by JDK-8243287

Reviewed-by: mchung, hseigel
This commit is contained in:
Doug Simon 2021-05-19 13:59:46 +00:00
parent 0b49f5ae19
commit fdd0352884
2 changed files with 10 additions and 0 deletions

View File

@ -136,6 +136,15 @@ public interface ResolvedJavaType extends JavaType, ModifiersProvider, Annotated
*/
boolean isAssignableFrom(ResolvedJavaType other);
/**
* Returns {@code null} since support for VM anonymous class was removed by JDK-8243287.
* This method is preserved for JVMCI backwards compatibility.
*/
@Deprecated
default ResolvedJavaType getHostClass() {
return null;
}
/**
* Returns true if this type is exactly the type {@link java.lang.Object}.
*/

View File

@ -1116,6 +1116,7 @@ public class TestResolvedJavaType extends TypeUniverse {
"isLinked",
"getJavaClass",
"getObjectHub",
"getHostClass",
"hasFinalizableSubclass",
"hasFinalizer",
"isLocal",