JDK-8219636 : Windows build failure after JDK-8207070 8u backport
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-02-25
  • Updated: 2019-09-14
  • Resolved: 2019-02-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjdk8u212 b01Fixed
Related Reports
Relates :  
Description
The backport was applied incorrectly, it misses the import statement in src/windows/classes/sun/awt/windows/WToolkit.java:
 import sun.awt.DisplayChangedListener;

Which causes Windows builds to fail:

Compiling 9228 files for BUILD_JDK
c:\Work\jdk8u-jdk8u-dev\jdk\src\windows\classes\sun\awt\windows\WToolkit.java:843: error: cannot find symbol
            if (lge instanceof DisplayChangedListener) {
                               ^
  symbol:   class DisplayChangedListener
  location: class WToolkit
c:\Work\jdk8u-jdk8u-dev\jdk\src\windows\classes\sun\awt\windows\WToolkit.java:844: error: cannot find symbol
                ((DisplayChangedListener) lge).displayChanged();
                  ^
  symbol:   class DisplayChangedListener
  location: class WToolkit
Comments
Fix Request This is needed to unbreak 8u after JDK-8207070 backport. The patch is simple and fixes Windows builds. 8u RFR: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-February/008678.html
25-02-2019