Thank you Jim,

Yes, I think you are right that the term rectangular in the documentation needs 
clarification. Just because I wanted to know what rectangular means in this 
context, I added the rotated tests.

And yes, the cause of one area being rectangular and the other not, while both 
being equal, will have to do with the trivial check that is made. The 
implementer apparently did not read the last sentence of the class description, 
that says: 

" The analysis that the Area class must perform on the path may not reflect the 
same concepts of "simple and obvious" as a human being perceives. "

My question remains: am I right in stating that

a.equals(b) && b.equals(a) && a.isRectangular != b.isRectangular()

never should be true? 

In that case I will file a bug report.

Piet
[Message sent by forum member 'pietblok' (pietblok)]

http://forums.java.net/jive/thread.jspa?messageID=253915

===========================================================================
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".

Reply via email to