JDK-6507558 : Regression:ImageTransferTest test failed for METAFILEPICT format (WIN32 only)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: x86
  • Submitted: 2006-12-22
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
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 7
7 b07Fixed
Related Reports
Relates :  
Description
Regression of 6362095 fix:
Detailed investigation shown that UTA made the mistake in metafile size calculation for clipboard. That was detected by %root%\test\java\awt\Clipboard\ImageTransferTest.
ImageTransferTest detects the difference in Source and Destination  raster-images.
The bug was localized and fixed. 
It has a visual effect in DnDToWordpadTest: 2 black points in copied image at right-top corner (scale image 500%).

To fix the bug we have change the metafile size to correct value.
 env->SetByteArrayRegion(bytes, 0, uMfSizeWithHead, (jbyte*)lpbMfBuffer);
instead
 env->SetByteArrayRegion(bytes, 0, uMfSize, (jbyte*)lpbMfBuffer);

Comments
SUGGESTED FIX NFS: /net/jano.sfbay/export/disk29/jcg/1.7.0-dolphin/awt/6507558 URL: http://javaweb.sfbay/jcg/1.7.0-dolphin/awt/6507558/
26-12-2006

EVALUATION To fix the bug we have change the metafile size to correct value. env->SetByteArrayRegion(bytes, 0, uMfSizeWithHead, (jbyte*)lpbMfBuffer); instead env->SetByteArrayRegion(bytes, 0, uMfSize, (jbyte*)lpbMfBuffer);
22-12-2006