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 - Clean up identification of resources in ClassPath API
Summary: Clean up identification of resources in ClassPath API
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2002-12-06 07:51 UTC by Svata Dedic
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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