Skip to content

Commit d97fba5

Browse files
committed
Allow querying methods on types with deleted elements
1 parent 5bcbca8 commit d97fba5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/meta/AnalysisUniverse.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,12 @@ public AnalysisMethod[] lookup(JavaMethod[] inputs) {
474474
List<AnalysisMethod> result = new ArrayList<>(inputs.length);
475475
for (JavaMethod method : inputs) {
476476
if (hostVM.platformSupported((ResolvedJavaMethod) method)) {
477-
AnalysisMethod aMethod = lookup(method);
477+
AnalysisMethod aMethod = null;
478+
try {
479+
aMethod = lookup(method);
480+
} catch (UnsupportedFeatureException ignored) {
481+
/* Unsupported elements should not prevent querying other members of the type */
482+
}
478483
if (aMethod != null) {
479484
result.add(aMethod);
480485
}

0 commit comments

Comments
 (0)