JDK-4034654 : File method to query case sensitivity
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 1.1.1,1.1.6,1.2.0,1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS:
    generic,solaris_2.5,solaris_7,windows_95 generic,solaris_2.5,solaris_7,windows_95
  • CPU: generic,x86
  • Submitted: 1997-02-26
  • Updated: 2018-02-11
  • Resolved: 2018-02-11
Related Reports
Duplicate :  
Relates :  
Relates :  
In order to support reasonable file permissions in hotjava, it is useful
to know if the file system naming is case sensitive, as our comparisons 
must be consistant with that.  The Win NT file dialog aggravates this problem
(but certainly isn't the only issue) because it 'automatically' generates 
file and path names in 'mixed' case.

Hotjava is no longer supported.

WORK AROUND I am working around this by looking at the separator character, (fortunately, all OS's (that I know of) that use back slashes) are also case insensitive.

SUGGESTED FIX This could be as simple as a property that is set up for the target system.

EVALUATION To support this properly requires an API change. We should consider this for the extended file support that is being planned for a future release. -- mr@eng 3/6/1997