This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 40410

Summary: add java.io.File FileUtil.normalizeFile(java.io.File) method
Product: platform Reporter: David Konecny <dkonecny>
Component: FilesystemsAssignee: rmatous <rmatous>
Status: RESOLVED FIXED    
Severity: blocker CC: jglick
Priority: P2 Keywords: API
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 40430    

Description David Konecny 2004-02-24 10:23:37 UTC
The implementation will do:

- on Windows, call getCanonicalFile to avoid lots
of evil problems with e.g. filename case and 8.3
syntax.

- on Unix or Unix-like systems, use new
File(f.toURI().normalize()) which takes care of
"." and ".." path components and absolutizes the
path but does not traverse symlinks.

This method will have to be used consistently in
all code base in order to prevent issues like 25953.
Comment 1 David Konecny 2004-03-02 10:55:08 UTC
Radek volunteer to do this.
Comment 2 Jesse Glick 2004-05-07 22:41:02 UTC
Doesn't we already have this method?? Why is this still open? And why
is Version set to 3.5?
Comment 3 David Konecny 2004-05-09 11:30:45 UTC
Fixed long time ago.