<AWT Dev>  Review request for 7117595: ArrayIndexOutOfBoundsException in Win32GraphicsEnvironment if display is removed
Sergey.Bylokhov at oracle.com
Mon Sep 23 07:02:40 PDT 2013
On 23.09.2013 17:45, Anthony Petrov wrote:
> That indeed seems logical. Moreover, the HeadlessException doesn't
> have a specification yet (see 8016313). However, I think that AWT
> doesn't consider itself headless even if the devices array is empty.
> Headless is a special mode, after all. I'd go with returning null for
> now - other code will catch NPEs, but that's OK. Later we may decide
> whether consider this case headless or not.
I think that we should not return null here, but instead we should
somehow handle situations then list of screens is updated to the empty
array not then it used.
> best regards,
>>> best regards,
>>> On 09/23/13 16:47, sergey malenkov wrote:
>>>> Could you please review the following fix:
Best regards, Sergey.
More information about the awt-dev