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 41993 - URLMapper.findFileObject does not work
Summary: URLMapper.findFileObject does not work
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords: REGRESSION
Depends on:
Blocks: 41506
  Show dependency tree
 
Reported: 2004-04-15 00:15 UTC by Jesse Glick
Modified: 2008-12-22 20:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-04-15 00:15:17 UTC
E.g. code completion DB updating does not work at
all; I see in my log file e.g.

Element name='nb_all-openide-src',
url='file:/space/src/nb_all/openide/src/',
classLevel=0, fieldLevel=0, methodLevel=0,
provider=null will not be scheduled for parsing
because root FileObject cannot be found for its URL.

This is from code accessing JCStorageElement which
uses the new method.

In fact I noticed that there are no unit tests for
this method! Issue #41506 says that
URLMapperTestHidden.java was patched, but the only
change is add a newline to the end of the file!
Comment 1 Jesse Glick 2004-04-15 00:15:57 UTC
And when I patch URLMapperTestHidden to actually test the method, it
fails - just returns null for a file: URL.
Comment 2 Jesse Glick 2004-04-15 00:25:33 UTC
Please review fix.

committed   * Up-To-Date  1.29       
openide/src/org/openide/filesystems/URLMapper.java
committed   * Up-To-Date  1.6        
openide/test/unit/src/org/openide/filesystems/URLMapperTestHidden.java
Comment 3 Jesse Glick 2004-04-15 02:53:31 UTC
And more:

committed   * Up-To-Date  1.7        
core/src/org/netbeans/core/filesystems/ArchiveURLMapper.java
committed   * Up-To-Date  1.30       
openide/src/org/openide/filesystems/URLMapper.java