Details
-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.0
-
x86
-
generic
Description
Name: skR10017 Date: 12/09/2000
JCK1.3 api/javax_swing/JFileChooser/descriptions.html#news fails on Windows:
To reproduce the bug, run script below
You should set JCK and JAVA_HOME.
-------------------------------------------------------------------------------------
#!/bin/sh
JAVA_HOME="H:/jdk1.4.0/win32"
JCK="H:/jck1.3/JCK-runtime-13fcs"
CLASSPATH="$JCK/classes;$JCK/javatest.jar"
export CLASSPATH
executeClass="javasoft.sqe.tests.api.javax.swing.JFileChooser.newsTests -TestCaseID ALL -TestURL file:$JCK/tests/api/javax_swing/JFileChooser/descriptions.html#news
-TestWorkDirURL file:///C:/temp"
$JAVA_HOME/bin/java ${SWITCH} -version
$JAVA_HOME/bin/java ${SWITCH} -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy ${executeClass}
RESULT="$?"
if [ $RESULT = 95 ]; then
echo Test passed
elif [ $RESULT = 97 ]; then
echo Test failed
else
echo Result is $RESULT
fi
--------------------------output------------------------------------
java version "1.4.0beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b42)
Java HotSpot(TM) Client VM (build B42, mixed mode)
JFileChooser2072: Passed. OKAY
JFileChooser2073: Passed. OKAY
JFileChooser0001: Failed. Failed to create JFileChooser object
JFileChooser0002: Failed. Failed to create JFileChooser object
JFileChooser0003: Failed. Failed to create JFileChooser object
JFileChooser0004: Failed. Failed to create JFileChooser object
JFileChooser0005: Failed. Failed to create JFileChooser object
JFileChooser0006: Failed. Failed to create JFileChooser object
STATUS:Failed. tests: 8; passed: 2; failed: 6; first test case failure: JFileChooser0001
lags=1280,maximumSize=,minimumSize=,preferredSize=,approveButtonText=,currentDirectory=Desktop,dialogTitle=,dialogType=OPEN_DIALOG,fileSelectionMode=FILES_ONLY,returnValue=ERROR_OPTION,selectedFile=,useFileHiding=true]
====== JFileChooser0002 ====== public boolean getControlButtonsAreShown()
Object:javax.swing.JFileChooser[,0,0,0x0,invalid,layout=javax.swing.BoxLayout,alignmentX=null,alignmentY=null,border=,flags=1280,maximumSize=,minimumSize=,preferredSize=,approveButtonText=,currentDirectory=Desktop,dialogTitle=,dialogType=OPEN_DIALOG,fileSelectionMode=FILES_ONLY,returnValue=ERROR_OPTION,selectedFile=,useFileHiding=true]
====== JFileChooser0003 ====== public boolean getControlButtonsAreShown()
Object:javax.swing.JFileChooser[,0,0,0x0,invalid,layout=javax.swing.BoxLayout,alignmentX=null,alignmentY=null,border=,flags=1280,maximumSize=,minimumSize=,preferredSize=,approveButtonText=,currentDirectory=Desktop,dialogTitle=,dialogType=OPEN_DIALOG,fileSelectionMode=FILES_ONLY,returnValue=ERROR_OPTION,selectedFile=,useFileHiding=true]
====== JFileChooser0004 ====== public boolean isAcceptAllFileFilterUsed()
Object:javax.swing.JFileChooser[,0,0,0x0,invalid,layout=javax.swing.BoxLayout,alignmentX=null,alignmentY=null,border=,flags=1280,maximumSize=,minimumSize=,preferredSize=,approveButtonText=,currentDirectory=Desktop,dialogTitle=,dialogType=OPEN_DIALOG,fileSelectionMode=FILES_ONLY,returnValue=ERROR_OPTION,selectedFile=,useFileHiding=true]
====== JFileChooser0005 ====== public boolean isAcceptAllFileFilterUsed()
Object:javax.swing.JFileChooser[,0,0,0x0,invalid,layout=javax.swing.BoxLayout,alignmentX=null,alignmentY=null,border=,flags=1280,maximumSize=,minimumSize=,preferredSize=,approveButtonText=,currentDirectory=Desktop,dialogTitle=,dialogType=OPEN_DIALOG,fileSelectionMode=FILES_ONLY,returnValue=ERROR_OPTION,selectedFile=,useFileHiding=true]
====== JFileChooser0006 ====== public boolean isAcceptAllFileFilterUsed()
Object:javax.swing.JFileChooser[,0,0,0x0,invalid,layout=javax.swing.BoxLayout,alignmentX=null,alignmentY=null,border=,flags=1280,maximumSize=,minimumSize=,preferredSize=,approveButtonText=,currentDirectory=Desktop,dialogTitle=,dialogType=OPEN_DIALOG,fileSelectionMode=FILES_ONLY,returnValue=ERROR_OPTION,selectedFile=,useFileHiding=true]
Test failed
--------------------------------------------------------------------
======================================================================
Attachments
Issue Links
- duplicates
-
JDK-4400728 JFileChooser constructors set incorrect default directory on Windows.
-
- Resolved
-