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 29344

Summary: Clean up identification of resources in ClassPath API
Product: java Reporter: Svata Dedic <sdedic>
Component: UnsupportedAssignee: Tomas Zezula <tzezula>
Status: CLOSED FIXED    
Severity: blocker Keywords: API
Priority: P1    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:

Description Svata Dedic 2002-12-06 07:51:10 UTC
The current way (findURL(Lookup, ...)) is ugly to
implement and probably broken anyway.
Find a better way to:
- identify the PathResource for the API client, so
it can recognize the PathResource when extracted
from a ClassPath
- provide a way to determine that 2 resources are
equal
Comment 1 Tomas Zezula 2003-04-23 16:32:20 UTC
The PathResource's method findURL will be removed and the
getDefinition method will return FsMember (new class which behaves
like PM, but does not require project).
The resource can b identified by its FsMember
The equals operation is up to resource implementation, there is no
easy way how to find if two resources of different type represent the
same physical resource.
So, resources are equivalent only if they are of the same type and
their equals method returns true.
Comment 2 Tomas Zezula 2003-06-26 17:49:35 UTC
This should be solved by the getHandler() method on the PathResource.
Comment 3 Tomas Zezula 2003-07-02 14:39:47 UTC
Fixed
Comment 4 Jan Becicka 2003-11-25 14:00:35 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 5 Jan Becicka 2003-11-25 14:09:16 UTC
---> CLOSED