<AWT Dev> RFR: 8242559: Clean the "libawt_xawt" library from code for headless mode

Sergey Bylokhov serb at openjdk.java.net
Sun Sep 13 09:18:52 UTC 2020

On Sun, 13 Sep 2020 04:22:11 GMT, Phil Race <prr at openjdk.org> wrote:

> Clearly these are there to prevent mistakes. So they add value at a tiny build time cost.
> I don't see the point of removing them.

That's the point of the fix, instead of implementing two versions of each method in these files just prevent
compilation of the file in the headless mode. As far as understand both solutions are equivalent, but an assertion at
the start of the file a much cleaner.


PR: https://git.openjdk.java.net/jdk/pull/101

More information about the awt-dev mailing list