Hello. Please review the fix for jdk/client. Bug: https://bugs.openjdk.java.net/browse/JDK-8238741 Fix: http://cr.openjdk.java.net/~serb/8238741/webrev.00
The check for the "headless state" was extracted from the first constructor to the separate method which now called by both constructors. -- Best regards, Sergey.