On Sun, 13 Sep 2020 04:22:11 GMT, Phil Race <p...@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