diff --git a/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/SubstrateTruffleHostEnvironment.java b/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/SubstrateTruffleHostEnvironment.java index bbd1c9b50999..7fa1167787ed 100644 --- a/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/SubstrateTruffleHostEnvironment.java +++ b/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/SubstrateTruffleHostEnvironment.java @@ -24,16 +24,17 @@ */ package com.oracle.svm.truffle; -import jdk.graal.compiler.truffle.TruffleCompilerImpl; -import jdk.graal.compiler.truffle.TruffleElementCache; -import jdk.graal.compiler.truffle.host.TruffleHostEnvironment; import org.graalvm.nativeimage.Platform; import org.graalvm.nativeimage.Platforms; +import com.oracle.svm.core.util.UserError; import com.oracle.truffle.compiler.HostMethodInfo; import com.oracle.truffle.compiler.TruffleCompilable; import com.oracle.truffle.compiler.TruffleCompilerRuntime; +import jdk.graal.compiler.truffle.TruffleCompilerImpl; +import jdk.graal.compiler.truffle.TruffleElementCache; +import jdk.graal.compiler.truffle.host.TruffleHostEnvironment; import jdk.vm.ci.meta.MetaAccessProvider; import jdk.vm.ci.meta.ResolvedJavaMethod; @@ -49,7 +50,7 @@ final class SubstrateTruffleHostEnvironment extends TruffleHostEnvironment { @Override protected TruffleCompilerImpl createCompiler(TruffleCompilable compilable) { - throw new UnsupportedOperationException("Creating a truffle compiler during SVM host compilation is not supported."); + throw UserError.abort("Creating a truffle compiler during SVM host compilation is not supported."); } @Override