https://issues.apache.org/bugzilla/show_bug.cgi?id=47975
--- Comment #4 from Thomas Deweese <[email protected]> 2009-10-13 03:09:31 UTC --- (In reply to comment #3) > Created an attachment (id=24374) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24374) [details] > Test case that shows the exception >From the Test case: RadialGradientPaint groupFillPaint = new RadialGradientPaint(329, 203, 114.1f, new float[] { 0.0f, 0.20634921f, 1.0000001f }, new Color[] { new Color(0, 255, 0), new Color(0, 255, 0), new Color(0, 255, 255) }); >From the documentation of RadialGradientPaint: * @param fractions numbers ranging from 0.0 to 1.0 specifying the * distribution of colors along the gradient You will note that your last fractions value is 1.0000001 which is not in the range 0.0->1.0. Our code should probably throw an IllegalArgument exception in this case, but the end result will be similar for you. > Run the attached test case under JDK 5.0_21 on Windows XP (has not tested on > other environments) and see the stack trace mentioned in the original post. I think it's fair to classify this as a bug in your code, although it would be good if Batik handled the case more cleanly. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
