Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 40141 invoked from network); 16 Mar 2010 00:48:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Mar 2010 00:48:52 -0000 Received: (qmail 74462 invoked by uid 500); 16 Mar 2010 00:48:51 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 74363 invoked by uid 500); 16 Mar 2010 00:48:51 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 74355 invoked by uid 99); 16 Mar 2010 00:48:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 00:48:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 00:48:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6A912234C4B4 for ; Tue, 16 Mar 2010 00:48:27 +0000 (UTC) Message-ID: <1144317683.279121268700507435.JavaMail.jira@brutus.apache.org> Date: Tue, 16 Mar 2010 00:48:27 +0000 (UTC) From: "Gary Gregory (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (LANG-608) Some StringUtils methods should take an int character instead of char to use String API features. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Some StringUtils methods should take an int character instead of char to us= e String API features. ---------------------------------------------------------------------------= ---------------------- Key: LANG-608 URL: https://issues.apache.org/jira/browse/LANG-608 Project: Commons Lang Issue Type: Bug Components: lang.* Affects Versions: 2.5 Environment: =09 =C2=AB Hide java version "1.6.0_16" Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) Microsoft Windows [Version 6.0.6002] Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700) Java version: 1.6.0_16 Java home: C:\Program Files\Java\jdk1.6.0_16\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows vista" version: "6.0" arch: "amd64" Family: "windows" Reporter: Gary Gregory Assignee: Gary Gregory Fix For: 3.0 Change the APIs from char to int character input to match underlying JRE AP= I called. There is no need to narrow the input type argument to the JRE, in= fact this causes us to loose support for Unicode supplementary characters.= The APIs changed are: - indexOf(String, char) -> indexOf(String, int) - indexOf(String, char, int) -> indexOf(String, int, int) - lastIndexOf(String, char) -> lastIndexOf(String, int) - lastIndexOf(String, char, int) -> lastIndexOf(String, int, int) - contains(String, char) -> contains(String, int)=20 The matches methods like String#indexOf(int) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.