Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6993113

[Spec clarification request] getSplashScreen(): null or HeadlessException?

XMLWordPrintable

    • 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.

            anthony Anthony Petrov (Inactive)
            ashusher Alexander Shusherov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: