http://bugs.openjdk.java.net/browse/JDK-8071710 added a depedency check but it was not working because this depends on file declaration order.
This resolves that which can cause occasional Solaris build failures by ensuring that HEADLESS is declared before FONTMANAGER. JDK 9 fix : http://cr.openjdk.java.net/~prr/8072116/ JDK8u fix : http://cr.openjdk.java.net/~prr/8072116.8uFWIW I've not seen it fail on 8u but it seems like it must be possible there too ..
-phil.
