JDK-8120108 : Deprecate com.sun.glass.ui.Application.Run(String args[], String title, final Launchable launchable)
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: fx2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2011-12-19
  • Updated: 2015-06-17
  • Resolved: 2011-12-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx2.1Fixed
Related Reports
Blocks :  
Relates :  
Description
Originally, Glass used com.sun.glass.ui.Application.Run(String args[], String title, final Launchable launch able) to allow the client to provide a custom App name.

There is already other mechanisms in place that control the App name and JFX - the only Glass client at this time is not using the title parameter either.

On Mac we use the info from bundle, then -Xdock:name (assuming we can implement it)

Unsure about Windows/Linux.

We should deprecate this API to simplify the situation.
Comments
The deprecated method is no longer used by FX. At Glass this method prints out a warning about being deprecated.
03-04-2012

To be clear, the deprecated argument is not used at the moment, and the actual impl mechanism is left up to each platform. Also, on Mac I currently do not know how to implement -Xdock:name, the only way to customize the "java" process name is to bundle it up as .app, which works as expected.
21-12-2011

Just to be 100% clear, if we deprecate, then there is no work to do here? (ie. -Xdock:name will just work for us on Mac and we will not have to implement anything for Windows or Linux).
21-12-2011

The args[] argument seems to be unused anywhere in Glass/FX. Also, RT-18228 suggests that there's an issue with the ApplicationBase.getArguments() method. Since both the title and the args live at the same place, and we don't need both of them, it makes sense to deprecate them together in terms of this JIRA issue.
21-12-2011