You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: espresso/src/com.oracle.truffle.espresso.libjavavm/src/com/oracle/truffle/espresso/libjavavm/LibEspresso.java
+24-4Lines changed: 24 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,11 @@ static int createJavaVM(@SuppressWarnings("unused") IsolateThread thread, JNIJav
111
111
context.close(true);
112
112
}
113
113
returnJNIErrors.JNI_ERR();
114
+
} catch (IllegalArgumentExceptione) {
115
+
// This can happen during option processing (build call above)
116
+
// OptionType converters can throw IllegalArgumentException
117
+
STDERR.println(e.getMessage());
118
+
returnJNIErrors.JNI_ERR();
114
119
}
115
120
Valuejava = bindings.getMember("<JavaVM>");
116
121
if (!java.isNativePointer()) {
@@ -161,7 +166,12 @@ static int enterContext(@SuppressWarnings("unused") IsolateThread thread, JNIJav
161
166
STDERR.println("Cannot enter context: no context found");
0 commit comments