Bug 27929 - RoundRectangle2D buglet
Summary: RoundRectangle2D buglet
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: awt (show other bugs)
Version: 0.92
: P3 minor
Target Milestone: 0.93
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-07 12:46 UTC by Norman Hendrich
Modified: 2006-09-21 07:49 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-09-19 16:26:48


Attachments
screenshot showing RoundRect2D.FLOAT under cacao+classpath (42.03 KB, image/gif)
2006-06-07 12:47 UTC, Norman Hendrich
Details
screenshot showing RoundRect2D under JDK 1.4.2 (19.44 KB, image/gif)
2006-06-07 12:47 UTC, Norman Hendrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Hendrich 2006-06-07 12:46:01 UTC
Another corner-case bug: the rendering of rounded rectangles is broken when the corner radius gets large (i.e. larger than the width/height of the rectangle itself). The JDK falls back to a kind of ellipse in those cases. See attached screenshots for a few examples rendered with cacao+classpath and JDK 1.4.2.
Comment 1 Norman Hendrich 2006-06-07 12:47:00 UTC
Created attachment 11624 [details]
screenshot showing RoundRect2D.FLOAT under cacao+classpath
Comment 2 Norman Hendrich 2006-06-07 12:47:32 UTC
Created attachment 11625 [details]
screenshot showing RoundRect2D under JDK 1.4.2
Comment 3 david.gilbert 2006-09-19 16:26:48 UTC
This bug also shows up in Swing applications that use the LiquidLookAndFeel[1], specifically in the title of JInternalFrame components.

[1] https://liquidlnf.dev.java.net/
Comment 4 david.gilbert 2006-09-20 13:34:16 UTC
I committed a fix for this bug:

2006-09-20  David Gilbert  <david.gilbert@object-refinery.com>

	* java/awt/geom/RoundRectangle2D.java:
	(getPathIterator): Reimplemented,
	and updated various API doc comments.
Comment 5 Norman Hendrich 2006-09-21 07:49:16 UTC
(In reply to comment #4)

Confirmed fixed (tested with dashed, dotted, dash-dotted lines, too).
Thanks!