Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6633796
Votes 0
Synopsis SurfaceData should not initialize Ductus until needed
Category java:classes_2d
Reported Against
Release Fixed 6u10(b09)
State 10-Fix Delivered, Verified, request for enhancement
Priority: 2-High
Related Bugs
Submit Date 26-NOV-2007
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.
Posted Date : 2007-11-26 14:27:35.0
Work Around
N/A
Evaluation
Move set of AA-related static fields of SurfaceData and their initializers to inner class.
Posted Date : 2007-11-26 14:27:35.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang