JDK-6838003 : Build fails on 64bit platforms
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-05-06
  • Updated: 2011-01-19
  • Resolved: 2009-07-16
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.
JDK 6 JDK 7
6u18Fixed 7 b60Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Build fails due to modified size of the AWT structure AwtGraphicsConfigData. The structure has been modified with 6762511.

Build log output is as follows:

GENERATING /tmp/jprt/P2/B/093716.yn153226/source/build/solaris-amd64/gensrc/sun/awt/X11/generator/sizes.32
GENERATING /tmp/jprt/P2/B/093716.yn153226/source/build/solaris-amd64/gensrc/sun/awt/X11/generator/sizes.64
COMPARING /tmp/jprt/P2/B/093716.yn153226/source/build/solaris-amd64/gensrc/sun/awt/X11/generator/sizes.64 and ../../../src/solaris/classes/sun/awt/X11/generator/sizes.64-solaris-i386
988c988
< AwtGraphicsConfigData 208
---
> AwtGraphicsConfigData 168

Comments
EVALUATION The fix is delivered with 6839999.
21-05-2009

EVALUATION Note: the problem has been intruduced in 6u14b04. Though this is unlikely to cause serious problems because we don't access the newly introduced field from Java code. 1. When we tweak our native data structures, we need also to update the xlibtypes.txt file so that the wrapper generator could generate Java-wrappers for these native structures. 2. The fix 6762511 introduced a new field in an internal AWT data structure AwtGraphicsConfigData (in the awt_p.h). The field has been placed at the very end of the data structure. The field is used from the native code only, and therefore there's no any problem. Allocating/freeing these structures also happens in the native code only. 3. The xlibtypes.txt hasn't been updated though, which makes the Java wrapper object to not know anything about this (very last) field in this structure. Since we don't access the field from the Java code, this does not produce any direct build failure, and is unlikely to produce any problems at run-time as well. The reason why 6u14 builds do not fail is that this check has been introduced in make/sun/xawt/Makefile in JDK7 only.
07-05-2009

SUGGESTED FIX --- old/src/solaris/classes/sun/awt/X11/generator/sizes.64-solaris-i386 2009-05-07 16:00:36.000000000 +0400 +++ new/src/solaris/classes/sun/awt/X11/generator/sizes.64-solaris-i386 2009-05-07 16:00:36.000000000 +0400 @@ -186,6 +186,15 @@ XEvent.xkeymap 0 XEvent.pad 0 XEvent 192 +XRenderDirectFormat.red 0 +XRenderDirectFormat.redMask 2 +XRenderDirectFormat.green 4 +XRenderDirectFormat.greenMask 6 +XRenderDirectFormat.blue 8 +XRenderDirectFormat.blueMask 10 +XRenderDirectFormat.alpha 12 +XRenderDirectFormat.alphaMask 14 +XRenderDirectFormat 16 ColorData.awt_Colors 0 ColorData.awt_numICMcolors 8 ColorData.awt_icmLUT 16 @@ -440,6 +449,12 @@ XSetWindowAttributes.colormap 96 XSetWindowAttributes.cursor 104 XSetWindowAttributes 112 +XRenderPictFormat.id 0 +XRenderPictFormat.type 8 +XRenderPictFormat.depth 12 +XRenderPictFormat.direct 16 +XRenderPictFormat.colormap 32 +XRenderPictFormat 40 XReparentEvent.type 0 XReparentEvent.serial 8 XReparentEvent.send_event 16 @@ -985,7 +1000,8 @@ AwtGraphicsConfigData.color_data 144 AwtGraphicsConfigData.glxInfo 152 AwtGraphicsConfigData.isTranslucencySupported 160 -AwtGraphicsConfigData 168 +AwtGraphicsConfigData.renderPictFormat 168 +AwtGraphicsConfigData 208 XColor.pixel 0 XColor.red 8 XColor.green 10 --- old/src/solaris/classes/sun/awt/X11/generator/xlibtypes.txt 2009-05-07 16:00:38.000000000 +0400 +++ new/src/solaris/classes/sun/awt/X11/generator/xlibtypes.txt 2009-05-07 16:00:37.000000000 +0400 @@ -245,6 +245,21 @@ blue_mask long colormap_size int bits_per_rgb int +XRenderDirectFormat + red short + redMask short + green short + greenMask short + blue short + blueMask short + alpha short + alphaMask short +XRenderPictFormat + id long + type int + depth int + direct struct XRenderDirectFormat + colormap long XIMHotKeyTrigger keysym long modifier int @@ -751,6 +766,7 @@ color_data pointer ColorData glxInfo pointer isTranslucencySupported int + renderPictFormat struct XRenderPictFormat AwtScreenData numConfigs int
07-05-2009

EVALUATION Needs to be pushed along with 6762511 in M4.
06-05-2009

EVALUATION Denied for JDK 7 M3. 6762511 was not critical; it will instead be rolled back (6838046).
06-05-2009

EVALUATION The file src/solaris/classes/sun/awt/X11/generator/sizes.64-solaris-i386 should be updated to reflect the new size of the structure. The fix must be delivered to JDK 7 M3 (b59).
06-05-2009