Issue 15134: String.equalsIgnoreCase(String) should result in Boolean (ocl2-rtf) Source: Microsoft (Mr. Len Charest, nobody) Nature: Revision Severity: Significant Summary: OCL 2.2 defines equalsIgnoreCase as returning an Integer. Given that the operation determines equivalence of two Strings, I would expect it to return Boolean: either the strings are equivalent (true) or they are not (false). Resolution: Revised Text: In 11.5.1 Real replace equalsIgnoreCase(s : String) : Integer Queries whether s and self are equivalent under case-insensitive collation in the locale of self. by equalsIgnoreCase(s : String) : Boolean Queries whether s and self are equivalent under case-insensitive collation. post: result = (self.toUpperCase() = s.toUpperCase()) Actions taken: March 17, 2010: received issue April 25, 2011: closed issue Discussion: The OCL 2.2 definition provides no indication as to what the Integer return might signify, the definition is therefore useless. Presumably the intent is to provide similar functionality to Java's java.lang.String.equalsIgnoreCase(String) : Boolean. End of Annotations:===== iler: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Tue, 06 Apr 2010 14:48:29 -0400 To: issues@omg.org, ocl2-rtf@omg.org From: Juergen Boldt Subject: issue 15134 -- OCL 2 RTF issue From: webmaster@omg.org Date: 17 Mar 2010 17:57:41 -0500 To: Subject: Issue/Bug Report ******************************************************************************* Name: Len Charest Company: Microsoft mailFrom: lcharest@microsoft.com Notification: Yes Specification: Object Constraint Language Section: 11.4.3 FormalNumber: formal/2010-02-01 Version: 2.2 RevisionDate: 2/1/2010 Page: 146 Title: String.equalsIgnoreCase(String) should result in Boolean Nature: Revision Severity: Significant test: 3qw8 B1: Report Issue Description: OCL 2.2 defines equalsIgnoreCase as returning an Integer. Given that the operation determines equivalence of two Strings, I would expect it to return Boolean: either the strings are equivalent (true) or they are not (false). Juergen Boldt Director, Member Services Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 132 fax: +1 781 444 0320 email: juergen@omg.org www.omg.org