Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 5046336
Votes 0
Synopsis File should support "strictly case sensitive" mode for file name/path matching
Category java:classes_io
Reported Against 1.4.2
Release Fixed
State 6-Fix Understood, request for enhancement
Priority: 4-Low
Related Bugs 4034654 , 4313887
Submit Date 12-MAY-2004
Description


A DESCRIPTION OF THE REQUEST :
Just has java has -Xfuture mode to impose more strict access restrictions and such, it should also have a "strictly case sensitive" mode of file name and path matching. When such a mode is enabled on OS's such as Windows or MacOS,
case errors would result in failures, even if they would otherwise
be forgiven by the underlying filesystem.


JUSTIFICATION :
This would avoid deployment failures where Java programs worked on Windows or MacOS, but then failed on Solaris or other OS'es where the only problem was an undetected case-matching error between an internal file name and the external file name. If developers had this feature available and used it, they could catch case errors even if they did not have access to fully case-sensitive
filesystems.


CUSTOMER SUBMITTED WORKAROUND :
Case errors in typical resource loading can be checked by insisting that all resources be in jar files which, of course, do fail on case errors.  But any files accessed directly via java.io.File can only be tested on platforms that have case-sensitive filesystems (again, Solaris, etc.). Deployed applications with such errors can often be repaired by simply renaming the files, but many sensitive sites might consider such modifications as unacceptable.
(Incident Review ID: 238198) 
======================================================================
Posted Date : 2005-08-25 19:27:46.0
Work Around
N/A
Evaluation
Maybe something to consider for JSR203.
  xxxxx@xxxxx   2004-05-12
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang