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 198702 - folderObj.getFileObject(".") != folderObj
Summary: folderObj.getFileObject(".") != folderObj
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 10:36 UTC by Vladimir Kvashin
Modified: 2011-05-25 18:23 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The test continues to fail on windows (1021 bytes, patch)
2011-05-19 11:13 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2011-05-18 10:36:14 UTC
Now getFileObject(".") call returns a different file object with trailing "."
That's incorrect, I believe
The test is

    @Test
    public void testToAbsolutePath() {
        File file = new File("/usr/include");
        FileObject fo = FileUtil.toFileObject(file);
        FileObject fo2 = fo.getFileObject(".");
        System.err.printf("%s\n", fo2);
        assert fo.equals(fo2);
    }

It prints 
MasterFileObject[/usr/include/.@1eec35:22ab57,valid=true]
and fails
Comment 1 Vladimir Voskresensky 2011-05-18 18:42:49 UTC
it's blocking us from moving to file objects again...
Comment 2 Jaroslav Tulach 2011-05-19 11:13:18 UTC
Created attachment 108388 [details]
The test continues to fail on windows
Comment 3 Jaroslav Tulach 2011-05-19 11:13:59 UTC
Opps, comment meant for bug 194418.
Comment 4 Jaroslav Tulach 2011-05-23 15:02:43 UTC
ergonomics#c67e8dcdd7e3
Comment 5 Vladimir Voskresensky 2011-05-25 07:42:18 UTC
Please, transplant into 7.0.1
Thanks!
Comment 6 Quality Engineering 2011-05-25 11:19:35 UTC
Integrated into 'main-golden', will be available in build *201105250400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c67e8dcdd7e3
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #198702: Support '.' in path names
Comment 7 Jaroslav Tulach 2011-05-25 18:23:34 UTC
changeset:   4d0178a80206
branch:      release701
parent:      d13432f323bc
parent:      c67e8dcdd7e3
date:        Wed May 25 17:59:28 2011 +0200
summary:     Merge of #198702 to 7.0.1