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

getSplashScreen is not in sync with close().

XMLWordPrintable

    • b91
    • other
    • solaris_9
    • Verified

      getSplashScreen is not in sync with close().
      getSplashScreen returns false even after close method is called
      reason is it fetches splash screen before close() method closes the image.

      run the attached code.
      java -splash:cup.png TestSplash
      if the returned value is "false" bug is reproduced

      for example when i run the following code by putting sleep(1000)
      it works fine, later reduce the sleep time say sleep(10) getSplashScreen returns false.
      try{
      splash = splash.getSplashScreen();
      System.out.println("and isVisible() is " + splash.isVisible());
      System.out.println( splash.getSplashScreen());
                 splash.close();
                 Thread.sleep(10);
                 System.out.println("and isVisible() is " +
      splash.isVisible());
                 System.out.println( "returned value--> " +
      splash.getSplashScreen());

      }
      catch (Exception e)
      {}

            anthony Anthony Petrov (Inactive)
            ggirishsunw Girish Girish (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: