-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
1.2fcs
-
generic
-
generic
-
Not verified
allan.jacobs@Eng 1998-06-30
The JCK-12beta3 test
api/java_awt/interactive/descriptions.html#FileDialogTest
uncovers a bug in the class libraries. The test calls
FileDialog.setFile(String) to set the default file of the
FileDialog that it displays. But the default file is not
listed in the dialog.
Make sure that there is a file called test.dat in /tmp.
Start up the script below in a directory where it is safe
to copy files.
In the FileDialogTest window, use either Mode (Load or Save),
enter "/tmp" into the Directory textfield, and enter
"test.dat" into the File textfield. Depress the Activate
button.
The FileDialog "MyFileDialog for open file" appears.
The "Enter file name:" textfield reads "/tmp" but
should read "test.dat". This is the bug.
Selecting "test.dat" from the Files choice box will
cause "test.dat" to appear in the "Enter file name:"
textfield. OK.
algol% which java
/net/mulder.eng/export/mulder3/jdk12x/sparc/jdk12/bin/java
algol% java -fullversion
java full version "JDK-1.2beta4-J"
algol% uname -a
SunOS algol 5.6 Generic sun4u sparc SUNW,Ultra-1
algol% psrinfo
0 on-line since 06/29/98 18:21:29
#!/bin/ksh
#PATH=/usr/java1.2/bin
PATH=/net/mulder.eng/export/mulder3/jdk12x/sparc/jdk12/bin
PATH=${PATH}:/usr/dt/bin:/bin:/usr/bin:/usr/sbin:/usr/openwin/bin
LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib
JCK=/net/mulder.eng/export/mulder3/JCK-12beta3
SRCDIR=/net/mulder.eng/export/mulder3/JCK-12beta3/tests/api/java_awt/interactive
CLASSPATH=.:${JCK}/javatest.jar:${JCK}/classes
export PATH
export LD_LIBRARY_PATH
export CLASSPATH
if [ ! -f FileDialogTests.html ]; then
cp ${SRCDIR}/descriptions.html .
fi
if [ ! -f TestApplet.java ]; then
cp ${SRCDIR}/TestApplet.java .
fi
if [ ! -f FileDialogTest.java ]; then
cp ${SRCDIR}/FileDialogTest.java .
fi
which java
java -fullversion
uname -a
psrinfo
javac -d . TestApplet.java FileDialogTest.java
java -verify javasoft.sqe.tests.api.java.awt.interactive.TestApplet javasoft.sqe.tests.api.java.awt.interactive.FileDialogTest -TestCaseID ALL