Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 388673

Summary: [GEF4] AffineTransform#equals(Object) is incorrect due to delegation.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF GeometryAssignee: Matthias Wienand <matthias.wienand>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2012-09-03 08:28:31 EDT
The AffineTransform#equals(Object) method delegates to the java.awt.geom.AffineTransform#equals(Object) method, but it passes an object of type org.eclipse.gef4.geometry.AffineTransform to that method, so that it always returns false.
Comment 1 Matthias Wienand CLA 2012-09-03 10:37:40 EDT
Corrected the parameter passed to the equals() method and added a test case to prevent future changes to reinstall the same bug. Pushed changes to master. Resolving as FIXED.