JDK-4827865 : JCK1.4a-runtime api/javax_swing/JFileChooser/descriptions.html#CtorNew
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_98
  • CPU: x86
  • Submitted: 2003-03-05
  • Updated: 2003-10-17
  • Resolved: 2003-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 b19Fixed
Related Reports
Relates :  
Relates :  
Description

Name: kaR10181			Date: 03/05/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.4.2-b17
JCK            : JCK1.4a-runtime
Platform[s]    : Windows 98
switch/Mode    : generic
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]:
         api/javax_swing/JFileChooser/descriptions.html#CtorNew
         api/javax_swing/JFileChooser/descriptions.html#news2

2 JCK1.4a-runtime tests fail on JDK1.4.2-b17. The bug is not reproducible on JDK1.4.2-b16.

Test source location:
=====================
/java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a/tests/api/javax_swing/JFileChooser/Ctor
NewTests.java
/java/re/jck/1.4a/promoted/fcs/binaries/JCK-runtime-14a/tests/api/javax_swing/JFileChooser/news
2Tests.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b17/jck14a/win32/win98_client_incgc_linux-17/w
orkDir/api/javax_swing/JFileChooser/descriptions_CtorNew.jtr
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b17/jck14a/win32/win98_client_incgc_linux-17/w
orkDir/api/javax_swing/JFileChooser/descriptions_news2.jtr

How to reproduce:
=================
Run the following script (you may need to change its variables)

--- script start ---
#!/bin/bash

JCK="h:/java/jck1.4a/JCK-runtime-14a"
JDK="h:/java/jdk1.4.2/win32"
switches="-Xfuture"
CLASSPATH="$JCK/classes;$JCK/lib/javatest.jar"

$JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.javax.swing.JFileChooser.CtorNewTests -TestURL file:///$JCK/tests/api/javax_swing/JFileChooser/descriptions.html#CtorNew -TestWorkDirURL file:///C:/tmp -TestCaseID JFileChooser2074 JFileChooser2075 JFileChooser2076 JFileChooser2077 
JFileChooser2078

--- script end ---

Test output:
============

JFileChooser2074: Failed. Failed to create JFileChooser object
JFileChooser2075: Failed. Failed to create JFileChooser object
JFileChooser2076: Failed. Failed to create JFileChooser object
JFileChooser2077: Failed. Failed to create JFileChooser object
JFileChooser2078: Failed. Failed to create JFileChooser object
STATUS:Failed.test cases: 5; all failed; first test case failure: JFileChooser2074
result: Failed. test cases: 5; all failed; first test case failure: JFileChooser2074

Specific machine info:
======================
Hostname: linux-17
OS: Windows 98


======================================================================

This bug can be reproduced with any app using JFileChooser on
Windows 98, such as FileChooserDemo or SwingSet2.

Open JFileChooser in any L&F and notice first that the current
directory is not "My Documents" as it should be. Try to double-click
on "My Documents" on the Desktop and notice how the file chooser
returns it as a file instead of showing its contents.

###@###.### 2003-03-06

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis-beta tiger FIXED IN: mantis-beta tiger INTEGRATED IN: mantis-b19 mantis-beta tiger VERIFIED IN: mantis-beta tiger-beta
14-06-2004

EVALUATION The folder "My Documents" on Windows 98 has the attribute SFGAO_BROWSABLE set, which we were taking as an indication that it is not a real directory. We need to add a special test for that case in the shellfolder code. ###@###.### 2003-03-05
05-03-2003