-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b126
-
generic
-
generic
-
Not verified
If an application has been started without a splash screen and in a headless system, both assertions are applicable:
---------------------------------------------------------------------
public static SplashScreen getSplashScreen()
...
Returns:
(1) [...] null if there is none
Throws:
[...]
(2) HeadlessException - if GraphicsEnvironment.isHeadless() returns true
---------------------------------------------------------------------
With current specs an implementation is free to implement (1) or (2) behavior. That's an ambiguity.
It should be clear from the text that HeadlessException is thrown in headless systems regardless the splash screen absence/presence.
---------------------------------------------------------------------
public static SplashScreen getSplashScreen()
...
Returns:
(1) [...] null if there is none
Throws:
[...]
(2) HeadlessException - if GraphicsEnvironment.isHeadless() returns true
---------------------------------------------------------------------
With current specs an implementation is free to implement (1) or (2) behavior. That's an ambiguity.
It should be clear from the text that HeadlessException is thrown in headless systems regardless the splash screen absence/presence.
- relates to
-
JDK-6993803 Request to update SplashScreen specification
- Closed