File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed
substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/meta Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 2626
2727import com .oracle .graal .pointsto .meta .AnalysisType ;
2828
29- import jdk .vm .ci .meta .Assumptions .AssumptionResult ;
3029import jdk .vm .ci .meta .JavaKind ;
3130import jdk .vm .ci .meta .ResolvedJavaField ;
32- import jdk .vm .ci .meta .ResolvedJavaMethod ;
3331
3432public class HostedInstanceClass extends HostedClass {
3533
@@ -141,16 +139,4 @@ public void setIdentityHashOffset(int offset) {
141139 assert offset >= 0 ;
142140 this .identityHashOffset = offset ;
143141 }
144-
145- @ Override
146- public AssumptionResult <ResolvedJavaMethod > findUniqueConcreteMethod (ResolvedJavaMethod m ) {
147- if (m .canBeStaticallyBound () || universe .hostVM ().isClosedTypeWorld ()) {
148- return super .findUniqueConcreteMethod (m );
149- }
150- /*
151- * With an open type world analysis we cannot make assumptions for methods that cannot be
152- * trivially statically bound.
153- */
154- return null ;
155- }
156142}
Original file line number Diff line number Diff line change @@ -562,4 +562,16 @@ public ResolvedJavaType unwrapTowardsOriginalType() {
562562 public Class <?> getJavaClass () {
563563 return OriginalClassProvider .getJavaClass (this );
564564 }
565+
566+ @ Override
567+ public AssumptionResult <ResolvedJavaMethod > findUniqueConcreteMethod (ResolvedJavaMethod m ) {
568+ if (m .canBeStaticallyBound () || universe .hostVM ().isClosedTypeWorld ()) {
569+ return SharedType .super .findUniqueConcreteMethod (m );
570+ }
571+ /*
572+ * With an open type world analysis we cannot make assumptions for methods that cannot be
573+ * trivially statically bound.
574+ */
575+ return null ;
576+ }
565577}
You can’t perform that action at this time.
0 commit comments