The comparison of two GeneralPath objects uses the same PathIterator for both objects. equal(GeneralPath path1, GeneralPath path2) will thus return true for any pair of non-null GeneralPath instances having the same windingRule.
Thanks for the report. I fixed the bug, which then (when rerunning the JUnit tests) uncovered a bug in the serialization for GeneralPath. I'll commit the fixes to CVS shortly.
Regards,
Dave Gilbert
JFreeChart Project Leader
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=112975
Originator: NO
Thanks for the report. I fixed the bug, which then (when rerunning the JUnit tests) uncovered a bug in the serialization for GeneralPath. I'll commit the fixes to CVS shortly.
Regards,
Dave Gilbert
JFreeChart Project Leader
Logged In: YES
user_id=112975
Originator: NO
Fixed in CVS for the upcoming 1.0.13 release.
Regards,
Dave Gilbert
JFreeChart Project Leader