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

PIT: SplashScreen.update() does not throw IllegalStateExcpn when splash screen is already closed

XMLWordPrintable

    • b47
    • generic
    • generic
    • Verified

      The API specification for SplashScreen.update() says that this method would throw an IllegalStateException under 2 circumstances
      1. When getGraphics() was not at all called before update()
      2. When splash screen is already closed when calling update()

      The second scenario mentioned above does not throw any exception on any of the platforms. I am getting the SplashScreen, getting the Graphics object from it and closing the splash screen. After this when I call update(), no exception is thrown.

      This is reproducible on all platforms - Win32, Sol10-JDS and Linux RH9.

      Here is the PIT build:
      java version "1.6.0-awt.pit-int-jcg-win-03"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-jcg-win-03-java2d_20_may_2005_05_21-b00)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b37, mixed mode)

      I have attached a sample test. Execute the sample test with '-splash' version. If the second 'isVisible()' returns false and if no exception is thrown, the bug is reproduced.
      ###@###.### 2005-05-21 19:09:31 GMT

            osemenovsunw Oleg Semenov (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: