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 51755 - FileUtil.normalizeFile should return original instance if possible
Summary: FileUtil.normalizeFile should return original instance if possible
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmatous
Depends on:
Reported: 2004-11-23 13:37 UTC by Petr Nejedly
Modified: 2008-12-22 22:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Possible fix (1.06 KB, patch)
2004-11-23 13:44 UTC, Petr Nejedly
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2004-11-23 13:37:31 UTC
Otherwise the File and String instances are
needlessly duplicated.
It affects e.g. ArchiveURLMapper, where each
registered JarFS has two path instances.
Comment 1 Petr Nejedly 2004-11-23 13:44:29 UTC
Created attachment 19005 [details]
Possible fix
Comment 2 Petr Nejedly 2004-11-23 13:57:55 UTC
JarFS will probably need a bit of cleanup in setJarFile as well, some
code is redundant there now (new File(), using String ctor of JarFile).
Comment 3 rmatous 2004-12-07 14:15:59 UTC
Comment 4 rmatous 2005-02-14 11:44:05 UTC
/cvs/openide/src/org/openide/filesystems/,v  <--  new
revision: 1.128; previous revision: 1.127

new revision: 1.6; previous revision: 1.5
Comment 5 Petr Nejedly 2005-02-15 16:53:56 UTC
OK now.