Skip to content

Commit 17dbbb8

Browse files
gilles-duboscqfarquet
authored andcommitted
Throw UnsupportedPlatformException in SVMHost.skipInterface
1 parent c3d973a commit 17dbbb8

File tree

1 file changed

+2
-1
lines changed
  • substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted

1 file changed

+2
-1
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/SVMHost.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
import com.oracle.graal.pointsto.api.HostVM;
6262
import com.oracle.graal.pointsto.api.PointstoOptions;
6363
import com.oracle.graal.pointsto.constraints.UnsupportedFeatureException;
64+
import com.oracle.graal.pointsto.constraints.UnsupportedPlatformException;
6465
import com.oracle.graal.pointsto.meta.AnalysisField;
6566
import com.oracle.graal.pointsto.meta.AnalysisMetaAccess;
6667
import com.oracle.graal.pointsto.meta.AnalysisMethod;
@@ -951,7 +952,7 @@ public boolean skipInterface(AnalysisUniverse universe, ResolvedJavaType interfa
951952
LogUtils.warning("%s The interface is filtered because the compatibility option %s is used. This option will be removed in a future GraalVM version.", message, commandArgument);
952953
return true;
953954
} else {
954-
throw new UnsupportedFeatureException(
955+
throw new UnsupportedPlatformException(
955956
message + " The old behavior can be temporarily restored using the option " + commandArgument + ". This option will be removed in a future GraalVM version.");
956957
}
957958
}

0 commit comments

Comments
 (0)