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

Summary: Provide capability to store java.net.URI natively as a basic type
Product: contrib Reporter: Petr Jiricka <pjiricka>
Component: RegistryAssignee: Jiri Skrivanek <jskrivanek>
Status: RESOLVED WONTFIX    
Severity: blocker CC: pbuzek
Priority: P2 Keywords: API
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.