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

Bug 350493

Summary: [ast] TupleFactory.TupleInstance.equals() is invalid
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2.0   
Target Milestone: M7   
Hardware: PC   
OS: Windows Vista   
Whiteboard: Legacy
Bug Depends on: 349117    
Bug Blocks:    

Description Ed Willink CLA 2011-06-27 15:41:15 EDT
Further to the EMF new group "EObject == Javadoc; was EcoreUtil.copy and String attributes" thread.

EObject has a contract (better written as):

The framework also assumes that implementations will not specialize {@link #equals(Object)} (nor {@link #hashCode()}) in a way that invalidates the use of "<code>==</code>" rather than {@link #equals(Object)} for equality testing;

This contract is not satisfied by TupleFactory.TupleInstance or by two test classes.

[This is not a problem for the pivot code since the pivot values do not extend EObject.]
Comment 1 Ed Willink CLA 2012-05-02 15:21:09 EDT
This is fixed by the Bug 349117 elimination of TupleFactory and TupeInstance.
Comment 2 Ed Willink CLA 2012-05-04 13:10:26 EDT
Pushed to master.
Comment 3 Ed Willink CLA 2013-05-20 11:37:18 EDT
CLOSED after a year in the RESOLVED state.