Hi, The first test necessarily fails since they are separate objects, so == cannot return true.
The second test fails because Path2D nor its subclasses do not define an equals() method meaning you inherit Object's equals() method which just does == on the object. To do a full deep equals, not just a reference equality test, you need to get the PathIterators from each Path2D and compare them, i.e. check the winding rule and then pull each co-ordinate set and equality test them. A simple fail-early loop should do the trick. [Message sent by forum member 'fred34' (fred34)] http://forums.java.net/jive/thread.jspa?messageID=236688 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".