JDK-4765373 : REGRESSION: JFileChooser.showOpenDialog(JFrame) restarts the computer
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.1
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2002-10-18
  • Updated: 2003-04-01
  • Resolved: 2003-04-01
Related Reports
Duplicate :  
Description

Name: sv35042			Date: 10/18/2002


FULL PRODUCT VERSION :
Java Version 1.4.1
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM(build 1.4.1-b21, mixed mode)

FULL OPERATING SYSTEM VERSION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
The source code:
public class Testprogram {
  public static void main (String[] args) {
  JFileChooser chooser  = new JFileChooser();
  chooser.setDialogTitle("test");
  int returnVal1;
  chooser.setCurrentDirectory(new
File(System.getProperty("user.dir")));
  returnVal1 = chooser.showOpenDialogue(new
  Program crashes:

JFrame());
  }
}

We compile and run the program.
When we run the program the program crashes and
the computer automatically restarts.

This error does not happen with Java(TM) 1.4.0 or
previous
Tested on two separate computers running Windows
XP

REGRESSION.  Last worked in version 1.4

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. refer to code above
2. compile and run
3.

EXPECTED VERSUS ACTUAL BEHAVIOR :
expect program to run.

program crashes with Java(TM) 1.4.1

ERROR MESSAGES/STACK TRACES THAT OCCUR :
no error message - after computer restarts Windows reports "The system
has recovered from a serious error - tell Microsoft about this problem"

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Test {
  public static void main *String[]args) {
  JFileChooser chooser = new JFileChooser();
  chooser.setDialogTitle("test");
  int returnVal1:
  chooser.setCurrentDirectory(newFile(System.getProperty("user.dir")));
  returnVal1 = chooser.showOpenDialogue(new JFrame());
  }
}

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

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

(Review ID: 164963) 
======================================================================

Comments
EVALUATION Submitter has confirmed that problem is not reproducible with 1.4.1_02. This is almost certainly due to the fix for bug 4713003, which was integrated into 1.4.1_02. This fixed a problem w/ some ATI video boards, which is used in the submitter's hardware setup. Closing this as a duplicate of 4713003. ###@###.### 2003-03-31
31-03-2003