United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6671616 TEST_BUG: java/io/File/BlockIsDirectory.java fails when /dev/dsk empty (sol)
JDK-6671616 : TEST_BUG: java/io/File/BlockIsDirectory.java fails when /dev/dsk empty (sol)

Details
Type:
Bug
Submit Date:
2008-03-05
Status:
Closed
Updated Date:
2013-06-22
Project Name:
JDK
Resolved Date:
2011-09-16
Component:
core-libs
OS:
solaris,solaris_10
Sub-Component:
java.io
CPU:
sparc,generic
Priority:
P3
Resolution:
Won't Fix
Affected Versions:
1.4.2_16,6u26,7
Fixed Versions:
1.4-pool

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
See the comments

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk8/tl/jdk/rev/40d699d7f6a1
                                     
2012-01-17
EVALUATION

This test attempts to find a block special device in the filesystem and call isDirectory() on it. There was a bug in the past where isDirectory() returned true. At the time this bug was fixed, this test was added to ensure that calling isDirectory() on a block special device always returns false.

This test does nothing on Windows.

On Solaris, this test looks in /dev/dsk for block special devices. Unfortunately (as reported here) /dev/dsk is empty within a zone. Also unfortunately, on a non-zone Solaris machine, /dev/dsk is filled with symlinks to the actual device nodes. Indeed, on some Solaris machines, there are no block devices at all in /dev; on non-zone machines they are in /devices, and within a zone I cannot find any at all!

On Linux, this test looks at /dev/ide0 and /dev/scd0 which are presumed to be block special devices. On my Ubuntu 10.04 system, /dev/ide0 does not exist and /dev/scd0 is a symlink. There are other block devices in /dev though.

It's infeasible for the test to create its own block special devices for testing, since this requires root access.

After discussing this with Alan Bateman, it seems quite unlikely for there to be a regression with this specific area, so we agreed that we should simply delete this test.
                                     
2011-09-01



Hardware and Software, Engineered to Work Together