bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/27717] New: different filesystems might break File.equals


From: barth at forwiss dot uni-passau dot de
Subject: [Bug classpath/27717] New: different filesystems might break File.equals
Date: 22 May 2006 11:51:10 -0000

In class java.io.File.java the method equals(Object object) checks whether two
Files are the same. Therefore an equals() on the path is done. But it depends
on VMFile.IS_CASE_SENSITIVE whether equals() or equalsIgnoreCase() is used,
thus, if you have two different filesystems on your system, one being case
sensitive, the other not case sensitive, you'll have a problem.

This should be fixed by getting the filesystem of a File and ask it for its
case. Java 1.6 API should include File.getFilesystem(), so I think that's the
way to go.


-- 
           Summary: different filesystems might break File.equals
           Product: classpath
           Version: 0.92
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: barth at forwiss dot uni-passau dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27717





reply via email to

[Prev in Thread] Current Thread [Next in Thread]