JDK-6364869 : REGRESSION: InputVerifier calling showMessageDialog causes infinite loop
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-12-19
  • Updated: 2007-10-16
  • Resolved: 2006-02-20
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
A call to JOptionPane.showMessageDialog from an InputVerifiier followed by a return true will cause an infinite loop.  It did not with 1.3x and 1.5.0_03.
If false is returned instead of true, everything works as expected.



REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
   class BosVerifier extends InputVerifier {
      public boolean verify (JComponent input) {
            JOptionPane.showMessageDialog(null, "Bill of sale number must be numeric only", "NUMBER FORMAT ERROR", JOptionPane.ERROR_MESSAGE);
            return true;
    }

---------- END SOURCE ----------

Release Regression From : 5.0u3
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

Comments
EVALUATION Looks like a duplicate of 6382144
20-02-2006