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: | CCE in ParsingLayerCacheManager.startElement if file and folder collide | ||
---|---|---|---|
Product: | platform | Reporter: | Jesse Glick <jglick> |
Component: | Module System | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
URL: | http://statistics.netbeans.org/exceptions/messageslog?id=562500 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 214254 | ||
Attachments: |
Test case
automatically converts files to folders |
Description
Jesse Glick
2012-02-27 17:40:06 UTC
ergonomics#52e1b7cdc80b - improving the exception text Created attachment 118025 [details]
Test case
Easily reproduced with the attached minimal test case. OK, so the problem is that folder is defined first and then another module defines file of the same name. What should happen in this situation? Well in the originally reported exception I was trying to use the 'weight' attribute to make the (empty) file "win". This is presumably a rare situation, so it might be asking too much for 'weight' to be honored there - I managed to do what I needed by masking the folder, then creating a file with a different name. If MultiFileSystem has a well-defined way of handling this situation, I guess BinaryFS should copy it. Or it could log a graceful warning and skip one or both of the entries. Integrated into 'main-golden', will be available in build *201204190400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/52e1b7cdc80b User: Jaroslav Tulach <jtulach@netbeans.org> Log: #208919: More information about the instanceof check Integrated into 'main-golden', will be available in build *201204260400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5e896460d1c7 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #208919: Test to confirm behavior -> P3, another P3 depends on this Created attachment 129465 [details]
automatically converts files to folders
ContentProviderTest and RepositoryTest in openide.filesystems seem to be failing however.
ergonomics#2fdbbb52075c Integrated into 'main-silver', will be available in build *201401090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2fdbbb52075c User: Jaroslav Tulach <jtulach@netbeans.org> Log: #208919: Survive collisions between two modules defining the same resource as file and as a folder |