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 33934 - Missing any non-abstract implementation of PathContent and PathResource
Summary: Missing any non-abstract implementation of PathContent and PathResource
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-05-27 15:33 UTC by Adam Sotona
Modified: 2007-09-26 09:14 UTC (History)
0 users

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 Adam Sotona 2003-05-27 15:33:27 UTC
When I want to implement for example J2MEPlatform
I need to return PathContent.
PathContent doesn't have any non-abstract child
and each implementation requires new 2 classes and
about 160 lines of code (length copy-pasted code
from JavaModule).
I think that classpath conversion String ->
PathContent is so common that it should be public.
Comment 1 Vitezslav Stejskal 2003-05-28 09:00:45 UTC
Would it be enough for you to be able to create PathContent based on
FileSet which contains the resources (*.jar files or folders)?
Comment 2 Adam Sotona 2003-05-28 09:14:37 UTC
Yes, that would be good,

thanks.



I hope MutableFileSet.add(Object) eats URLs :-)
Comment 3 Vitezslav Stejskal 2003-05-28 09:25:09 UTC
Yes, URLs can always be used. Additionaly, you can add/remove also
FileObjects (and DataObjects) depending on which factory method you
used to create the fileset.
Comment 4 Tomas Zezula 2003-06-05 15:36:04 UTC
Not a bug it is a feature. :-)

There is no public visible implementation of PR an CP, but there
are factories, both project related and project independent, to create CP.

PathResource is something which is abstract from its definition,
because they can be very different e.g. CompiledClasses, Jar and Library.

Providers of PR can provide templates for them or factory methods as
Java module does.

Closing the issue as invalid.
Comment 5 Jan Becicka 2003-11-25 14:03:22 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 6 Jan Becicka 2003-11-25 14:12:27 UTC
---> CLOSED