United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6819122 DefaultProxySelector should lazily initialize the Pattern object and the NonProxyInfo objects
JDK-6819122 : DefaultProxySelector should lazily initialize the Pattern object and the NonProxyInfo objects

Details
Type:
Enhancement
Submit Date:
2009-03-18
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2009-04-11
Component:
core-libs
OS:
generic
Sub-Component:
java.net
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
DefaultProxySelector has a few static variables (e.g. ftpNonProxyInfo and httpNonProxyInfo and the Pattern object) that are not always needed at startup.  We can defer its initialization until it's needed.

                                    

Comments
EVALUATION

Defer the initialization of the static fields.
                                     
2009-03-18
SUGGESTED FIX

See attached jdk.patch.
                                     
2009-04-01



Hardware and Software, Engineered to Work Together