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.
Summary: | folderCreated fired from FileObject.getFileObject for a folder which already exists (and was created by FileObject.createFolder) | ||
---|---|---|---|
Product: | platform | Reporter: | Jesse Glick <jglick> |
Component: | Filesystems | Assignee: | rmatous <rmatous> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | mkrauskopf |
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 60011 |
Description
Jesse Glick
2005-06-15 15:30:22 UTC
Multi-component pathname separated by File.separatorChar isn't allowed to be used as a parameter for FileObject.createFolder. Thus NbModuleProjectGenerator.createEmptyTestDir is bugy in line projectDir.createFolder("test/unit/src"); Use rather FileUtil.createFolder. On the other hand MasterFileObject.createFolder should behave in more predictable way. So it should throw an IAE or IOException or something. I will fix NbModuleProjectGenerator.createEmptyTestDir. committed * Up-To-Date 1.25 apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProjectGenerator.java Also Javadoc: committed * Up-To-Date 1.3 openide/fs/src/org/openide/filesystems/FileObject.java #61578: /cvs/openide/masterfs/src/org/netbeans/modules/masterfs/MasterFileObject.java,v new revision: 1.45; previous revision: 1.44 |