RFR: 6521141: DebugGraphics NPE @ setFont();
Tejesh R
tr at openjdk.org
Thu Jul 28 14:48:54 UTC 2022
On Thu, 28 Jul 2022 12:50:43 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> I guess exposing no-args public constructor was wrong and it should have been protected from beginning. Also, please add a testcase.
Yeah, its been used internally by other constructors after setting the `graphics` instances. Exposing it as public causes user to create it without `graphics` been set. I tried modifying it to protected and ran the test, but some html test fails.
-------------
PR: https://git.openjdk.org/jdk/pull/9673
More information about the client-libs-dev
mailing list