United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6633796 SurfaceData should not initialize Ductus until needed
JDK-6633796 : SurfaceData should not initialize Ductus until needed

Details
Type:
Enhancement
Submit Date:
2007-11-26
Status:
Closed
Updated Date:
2011-02-11
Project Name:
JDK
Resolved Date:
2007-12-17
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b09)

Related Reports
Backport:

Sub Tasks

Description
SurfaceData initializes number of pipes and loops but some of them might be not used at all.
This can be done more lazily.

In particular, Ductus library is initialized (triggered by initialization of AA loops) but 
many simple applets are not using AA loops.
Moreover, SwingSet on windows only needs loads Ductus library for 2 tabs 
(JColorChooser demo (animation of thick 2D shape) and progressbar demo (LoopPipe.getStrokeSpans() 
needs stroker from Ductus)).
I.e. for many java applications initialization of Ductus at startup seems to be unneeded.

                                    

Comments
EVALUATION

Move set of AA-related static fields of SurfaceData and their initializers to inner class.
                                     
2007-11-26
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/java2d_data/6u10/6633796.0/
                                     
2007-11-29



Hardware and Software, Engineered to Work Together