JDK-6818072 : Load Ductus using Class.forName if exist instead of using the service loader
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-03-16
  • Updated: 2011-05-18
  • Resolved: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b58Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
Pluggable interfaces for rendering engine and CMM are added in JDK 7 to enable OpenJDK replacement of encumbered code and use service loader to load the specified provider.

For Sun's JDK build, Ductus rendering engine and Kodak CMS are included and we can avoid using the service loader and instead, load the class directly if exist.  This will remove the dependency on the service loader.

Comments
EVALUATION This bug was fixed before 2009/4/15 prior to JDK 7 m3 deadline. As the next integration for 2D is b58, this bug fix needs m3 approval. Webrev at: http://cr.openjdk.java.net/~mchung/6818072/webrev.03/
20-04-2009

SUGGESTED FIX http://hg.openjdk.java.net/jdk7/jdk7/rev/e61d93fc8ed1
15-04-2009

EVALUATION The image.io heavily uses the service loader mechanism to load the providers supplied in the application classpath. So we will fix this for the Ductus rendering engine. Attempt to load Ductus library; if not exist, use service loader to lookup the rendering engine as in the existing implementation.
25-03-2009

EVALUATION Use Class.forName to load the ductus and kodak CMM libraries. Fall back to use ServiceLoader if class not found.
16-03-2009