-
Bug
-
Resolution: Fixed
-
P3
-
6
-
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)
{}
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)
{}