File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 5757import jdk .internal .module .DefaultRoots ;
5858import jdk .internal .module .ModuleBootstrap ;
5959import jdk .internal .module .SystemModuleFinders ;
60- import org .graalvm .compiler .options .OptionValues ;
6160import org .graalvm .nativeimage .ImageSingletons ;
6261
6362import com .oracle .graal .pointsto .meta .AnalysisType ;
@@ -685,9 +684,8 @@ static int distanceFromBootModuleLayer(ModuleLayer layer) {
685684 .orElse (0 );
686685 }
687686
688- public String getMainModuleName () {
689- OptionValues parsedHostedOptions = imageClassLoader .classLoaderSupport .getParsedHostedOptions ();
690- String mainModule = SubstrateOptions .Module .getValue (parsedHostedOptions ).trim ();
687+ public static String getMainModuleName () {
688+ String mainModule = SubstrateOptions .Module .getValue ();
691689 return mainModule .isEmpty () ? null : mainModule ;
692690 }
693691
You can’t perform that action at this time.
0 commit comments