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 36188 - Provide capability to store java.net.URI natively as a basic type
Summary: Provide capability to store java.net.URI natively as a basic type
Status: RESOLVED WONTFIX
Alias: None
Product: contrib
Classification: Unclassified
Component: Registry (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-09-18 18:00 UTC by Petr Jiricka
Modified: 2008-12-22 13:53 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2003-09-18 18:00:42 UTC
The Registry API allows storing some well known
class types (primitive classes, String, URL etc.)
in a native format, so serialized value is not
created, and a convertor does not need to be provided.

It would be useful to enhance the basic types to
also include java.net.URI, which in J2EE 1.4
replaces java.net.URL for many purposes.

This will allow clients to also store
java.io.File, since there is an easy way to
round-trip between URI and File: new File(f.toURI()).

Additionally, a native way to store java.io.File
could be provided too (but this is less critical),
by delegating to the mechanism for saving
java.net.URI.

I am setting a high priority because java.net.URI
should be considered a basic type, and because it
allows indirectly allows storing java.io.File,
which can be very useful mainly to store
user-private settings.
Comment 1 Petr Jiricka 2003-09-22 13:19:06 UTC
(Adding Pavel Buzek to CC:)

Pavle, you might be interested in this - this could be used by class
org.netbeans.modules.j2ee.deployment.impl.projects.J2eeProfileSettings.

Comment 2 Antonin Nebuzelsky 2008-04-15 17:03:56 UTC
Reassigning to new module owner jskrivanek.
Comment 3 David Konecny 2008-04-15 22:17:21 UTC
Registry module is obsolete.