JDK-8046239 : Build failure in 9-client on all non-Windows platforms
Type:Bug
Component:client-libs
Sub-Component:javax.swing
Affected Version:9
Priority:P1
Status:Resolved
Resolution:Fixed
OS:generic
Submitted:2014-06-06
Updated:2014-07-10
Resolved:2014-06-09
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.
It appears that the fix for 8039383 pushed here
http://hg.openjdk.java.net/jdk9/client/jdk/rev/3170baa4ab3c
has broken all non-windows builds since shared code now
references files only in the windows build
Comments
The build failure is caused by JDK-8039383 push.
Windows Look&Feel proved to be available on non-Windows platforms. At the same time WindowsLookAndFeel can't be used on other platforms but Windows since its isSupportedLookAndFeel() method returns false.
Thus, XPStyle is shared code and it can't access WToolkit which isn't available on other platforms but Windows. I removed the dependency on WToolkit from XPStyle: it uses "win.xpstyle.themeActive" to access the desktop property as it used to do.
There's a stub version of ThemeReader.java in src/solaris/classes/sun/awt/windows/ which is used for non-Windows builds. I added isXPStyleEnabled() function which always returns false.