Issue 2419: Corrections to the equals/setEquals interfaces of DTime (currency-rtf) Source: (, ) Nature: Revision Severity: Summary: Summary: The equals/setEquals() interfaces accept a base class CORBA Object as the parameter type. The instance passed must be narrow’ed to a DDecimal, DTime, etc. for the interface to carry on with its task. This is not possible as the Ddecimal, Dtime, etc. are not IDL Interfaces, they are IDL Value types. Since an IDL Value type does not derive from Object, the narrow’ing is not possible. This also affects other portions of the CBO … DCurrency, DMoney, etc. Also, equals(in Object anObject) causes a problem in a Java implementation as every Java class inherits from java.lang.Object. The boolean equals(Object obj) method supported by java.lang.Object cannot be overriden AND additional throw an FbcException. Thus, equals(), setEquals() should be changed wherever defined to be equal(), setEqual(). Resolution: Revised Text: Actions taken: January 11, 1999: received issue Discussion: End of Annotations:===== Return-Path: From: Robert_Mickley@CYBORG.COM X-Lotus-FromDomain: CYBORG@CYBORG_NET To: issues@omg.org cc: Robert_Mickley@CYBORG.COM, Amy_Griffis@CYBORG.COM Date: Mon, 11 Jan 1999 21:28:52 -0700 Subject: Currency RTF Issues Content-Disposition: inline Today is the deadline for comments for the Currency RTF. Below is an itemized list of additions to that list. Issue Title: Corrections to the equals/setEquals interfaces of DTime Issue Type: IDL Revision Issue Description: The equals/setEquals() interfaces accept a base class CORBA Object as the parameter type. The instance passetc. for the interface to carry on with its task. This is not possible as the Ddecimal, Dtime, etc. are not IDL Interfaces, they are IDL Value types. Spossible. This also affects other portions of the CBO ince an IDL Value type does not derive from Object, the narrowed must be narrow DCurrency, DMoney, etc. Also, equals(in Object anObject) causes a problem in a Java implementation as every Java class inherits from java.lang.Object. The boolean equals(Object obj) method supported by java.lang.Object cannot be overriden AND additional throw an FbcException. Thus, equals(), setEquals() should be changed wherever defined to be equal(), setEqual().