Mario Torre wrote:
> Hello all!
>
> While hacking on Cacio I've found that SunGraphics2D exposes a reference
> to "this" inside the constructor to another class, while initialising a
> field that contains the RederingLoops.
>
> I filed a bug report and proposed a patch for review:
>
> https://bugs.openjdk.java.net/show_bug.cgi?id=100068
>
> The webrew is here:
>
> http://cr.openjdk.java.net/~neugens/100068/webrev.01/
>
> There is not much to say about the rationale for the bug/fix, just that
> the code looks a bit borked to me with those public references (there
> are others around, I think I should fix them all at some point), but the
> real problem is indeed exposing "this" in the constructor.
>
|