提交 aa2806bb 编写于 作者: D dholmes

8006667: Merge issue: Profile attribute need to be examined before custom attributes

Summary: swap profile checking and FXHelper checking
Reviewed-by: alanb
上级 5478410f
...@@ -413,15 +413,6 @@ public enum LauncherHelper { ...@@ -413,15 +413,6 @@ public enum LauncherHelper {
if (mainValue == null) { if (mainValue == null) {
abort(null, "java.launcher.jar.error3", jarname); abort(null, "java.launcher.jar.error3", jarname);
} }
/*
* Hand off to FXHelper if it detects a JavaFX application
* This must be done after ensuring a Main-Class entry
* exists to enforce compliance with the jar specification
*/
if (mainAttrs.containsKey(
new Attributes.Name(FXHelper.JAVAFX_APPLICATION_MARKER))) {
return FXHelper.class.getName();
}
/* /*
* If this is not a full JRE then the Profile attribute must be * If this is not a full JRE then the Profile attribute must be
...@@ -444,6 +435,16 @@ public enum LauncherHelper { ...@@ -444,6 +435,16 @@ public enum LauncherHelper {
} }
} }
/*
* Hand off to FXHelper if it detects a JavaFX application
* This must be done after ensuring a Main-Class entry
* exists to enforce compliance with the jar specification
*/
if (mainAttrs.containsKey(
new Attributes.Name(FXHelper.JAVAFX_APPLICATION_MARKER))) {
return FXHelper.class.getName();
}
return mainValue.trim(); return mainValue.trim();
} catch (IOException ioe) { } catch (IOException ioe) {
abort(ioe, "java.launcher.jar.error1", jarname); abort(ioe, "java.launcher.jar.error1", jarname);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册