Skip to content

Commit 1862377

Browse files
committed
svm: address review comments
1 parent b1648bd commit 1862377

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/JavaMainWrapper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ public List<String> getInputArguments() {
166166
}
167167

168168
public static void invokeMain(String[] args) throws Throwable {
169-
// This needs to be a local and not a parameter to allow proper constant folding
170169
JavaMainSupport javaMainSupport = ImageSingletons.lookup(JavaMainSupport.class);
171170
if (javaMainSupport.mainNonstatic) {
172171
Object instance = javaMainSupport.javaMainClassCtorHandle.invoke();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ private int buildImage(ImageClassLoader classLoader) {
478478
throw UserError.abort(ex.getCause(),
479479
"Method '%s.%s' is declared as the main entry point but it can not be found. " +
480480
"Make sure that class '%s' is on the classpath and that non-private " +
481-
"method '%s()' or '%s(String[])' exists in that class.",
481+
"method '%s()' or '%s(String[])'.",
482482
mainClass.getName(),
483483
mainEntryPointName,
484484
mainClass.getName(),

0 commit comments

Comments
 (0)