<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    See: <a
      href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7092231">Bug
      7092231</a> <font face="">- Remove incomplete package sun.dc from
      OpenJDK sources</font><br>
    See: <a
      href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7092246">Bug
      7092246</a> - Simplify
    sun.awt.geom.PathConsumer2D.RenderingEngine.getInstance()<br>
    <br>
    -Ulf<br>
    <br>
    <br>
    Am 23.07.2011 22:35, schrieb Mario Torre:
    <blockquote
cite="mid:CAGUMyaRB0aiVx-DzOvXffGd_AQwH8KtHfv01EiC1mS2-TkO4MA@mail.gmail.com"
      type="cite">
      <pre wrap="">2011/7/23 Ulf Zibis <a class="moz-txt-link-rfc2396E" href="mailto:Ulf.Zibis@gmx.de"><Ulf.Zibis@gmx.de></a>:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,

couldn't you use ReflectiveOperationException instead?
</pre>
      </blockquote>
      <pre wrap="">
That's a good point, right.

</pre>
      <blockquote type="cite">
        <pre wrap="">Additionally you could better profit from generics:
</pre>
      </blockquote>
      <pre wrap="">
Yeah, but I don't want to change more than needed.

</pre>
      <blockquote type="cite">
        <pre wrap="">
And again more simple just use (no need for try...catch):

               public RenderingEngine run() {
                   String reClass =
System.getProperty("sun.java2d.renderer");
                   if ("sun.dc.DuctusRenderingEngine".equals(reClass)) {
                       return new sun.dc.DuctusRenderingEngine();
                   }
                   for (RenderingEngine re : ServiceLoader.loadInstalled(
                           RenderingEngine.class)) {
                       if (re.getClass().getName().equals(reClass)) {
                           return re;
                       }
                   }
                   return null;
               }

-Ulf
</pre>
      </blockquote>
      <pre wrap="">
Again, I don't want to change more than needed. In this case, however,
I miss your point; as far as I know sun.dc.DuctusRenderingEngine()
cannot be instantiated, is not part of the OpenJDK distribution, so
this would not work on OpenJDK.

Cheers,
Mario
</pre>
    </blockquote>
  </body>
</html>