JDK-6639686 : build failure on win64 caused by the fix for 6635805
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2003
  • CPU: x86
  • Submitted: 2007-12-10
  • Updated: 2011-01-20
  • Resolved: 2007-12-17
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
6u10 b09Fixed
Related Reports
Relates :  
Description
Fix for 6635805 caused a nightly build failure on windows-amd64:
C:/MSSDK.Apr06/Bin/Win64/x86/amd64/cl  -O2 -Zi -nologo -MD /D _STATIC_CPPLIB -Fdd:/update.int/6u_2008q2/j2se/build/windows-amd64/tmp/sun/sun.awt/awt/obj64/ -Fed:/update.int/6u_2008q2/j2se/build/windows-amd64/tmp/sun/sun.awt/awt/obj64/ -Fmd:/update.int/6u_2008q2/j2se/build/windows-amd64/tmp/sun/sun.awt/awt/obj64/  -Wp64  -W3 -EHsc -DUNICODE -D_UNICODE  -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_AMD64_ -Damd64 -DWIN32_LEAN_AND_MEAN -I. -Id:/update.int/6u_2008q2/j2se/build/windows-amd64/tmp/sun/sun.awt/awt/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/share/javavm/include -I../../../src/windows/javavm/include -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/awt -I../../../src/windows/native/sun/awt -Id:/update.int/6u_2008q2/j2se/build/windows-amd64/tmp/sun/sun.awt/awt/CClassHeaders/../../java/jvm -Id:/update.int/6u_2008q2/j2se/build/windows-amd64/tmp/sun/sun.awt/awt/obj64 -I../../../src/share/native/common -I../../../src/windows/native/sun/windows -IC:/DXSDK/Include -I../../../src/share/native/sun/awt/image/cvutils -I../../../src/share/native/sun/awt/image -I../../../src/share/native/sun/java2d/loops -I../../../src/share/native/sun/java2d -I../../../src/windows/native/sun/java2d -I../../../src/share/native/sun/java2d/opengl -I../../../src/windows/native/sun/java2d/opengl -I../../../src/windows/native/sun/java2d/windows -I../../../src/windows/native/sun/java2d/d3d -I../../../src/share/native/sun/font -I../../../src/share/native/sun/java2d/pipe -I../../../src/share/native/sun/dc/path -I../../../src/share/native/sun/dc/doe -I../../../src/share/native/sun/awt/debug  -I../../../src/share/native/sun/awt/medialib    -c -Fod:/update.int/6u_2008q2/j2se/build/windows-amd64/tmp/sun/sun.awt/awt/obj64/D3DGraphicsDevice.obj  ../../../src/windows/native/sun/awt/../java2d/d3d/D3DGraphicsDevice.cpp
D3DGraphicsDevice.cpp
../../../src\windows\native\sun\awt\../java2d\d3d\D3DGraphicsDevice.cpp(92) : error C2664: 'swprintf' : cannot convert parameter 2 from 'size_t' to 'const wchar_t *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
gnumake[2]: *** [d:/update.int/6u_2008q2/j2se/build/windows-amd64/tmp/sun/sun.awt/awt/obj64/D3DGraphicsDevice.obj] Error 2

Comments
SUGGESTED FIX http://sa.sfbay.sun.com/projects/java2d_data/6u10/6639686.0
10-12-2007

EVALUATION see desc. Use _snwprintf instead of overloaded swprinf.
10-12-2007