United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7019861 Bug in src/share/classes/sun/java2d/pisces/Renderer.java:59
7019861 : Bug in src/share/classes/sun/java2d/pisces/Renderer.java:59

Details
Type:
Bug
Submit Date:
2011-02-16
Status:
Closed
Updated Date:
2012-03-20
Project Name:
JDK
Resolved Date:
2011-04-13
Component:
client-libs
OS:
linux
Sub-Component:
2d
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7

Related Reports

Sub Tasks

Description
FULL PRODUCT VERSION :


A DESCRIPTION OF THE PROBLEM :
Since revision 5e624003e622 in 2d/jdk, we compute maxY as getScanLineCrossingEnd()-1 in sun.java2d.pisces.Renderer and we have hasNext() {return nextY < maxY;} so we're never processing the last scanline. This is a regression.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Drawing almost any antialiased shape will reproduce it. It's most noticeable with something like in the given "source code".


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
g2.setRenderingHint(KEY_ANTIALIASING, VALUE_ANTIALIAS_ON);
g2.draw(new QuadCurve2D.Float(0, 0, 20, 0, 20, 20));
---------- END SOURCE ----------

                                    

Comments
EVALUATION

I gather Denis will be working on a fix.
                                     
2011-02-16



Hardware and Software, Engineered to Work Together