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 26
26
27
27
import com .oracle .graal .pointsto .meta .AnalysisType ;
28
28
29
- import jdk .vm .ci .meta .Assumptions .AssumptionResult ;
30
29
import jdk .vm .ci .meta .JavaKind ;
31
30
import jdk .vm .ci .meta .ResolvedJavaField ;
32
- import jdk .vm .ci .meta .ResolvedJavaMethod ;
33
31
34
32
public class HostedInstanceClass extends HostedClass {
35
33
@@ -141,16 +139,4 @@ public void setIdentityHashOffset(int offset) {
141
139
assert offset >= 0 ;
142
140
this .identityHashOffset = offset ;
143
141
}
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
- }
156
142
}
Original file line number Diff line number Diff line change @@ -562,4 +562,16 @@ public ResolvedJavaType unwrapTowardsOriginalType() {
562
562
public Class <?> getJavaClass () {
563
563
return OriginalClassProvider .getJavaClass (this );
564
564
}
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
+ }
565
577
}
You can’t perform that action at this time.
0 commit comments