JDK-4064021 : Application can hang if DISPLAY is invalid
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.3
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: sparc
  • Submitted: 1997-07-11
  • Updated: 1997-12-04
  • Resolved: 1997-12-04
Related Reports
Duplicate :  
Description
If I set my DISPLAY environment variable to an X server that does not
allow connection, and then start JWS.  You get the can not connect message,
but then JWS hangs around.

This is because the AWT continues with a bogus display, leading to 
unpredictable results.

Comments
SUGGESTED FIX The AWT should provide some way for the Java program to detect that the display setting was invalid, so that the application can determine whether it wants to continue or not.
11-06-2004