This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
libgcj/369: "String.regionMatches(true..." doesn't work
- To: java-gnats at sourceware dot cygnus dot com
- Subject: libgcj/369: "String.regionMatches(true..." doesn't work
- From: pedro at vis dot ethz dot ch
- Date: 8 Nov 2000 20:34:26 -0000
- Reply-To: pedro at vis dot ethz dot ch
>Number: 369
>Category: libgcj
>Synopsis: "String.regionMatches(true..." doesn't work
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 08 12:40:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: pedro@vis.ethz.ch
>Release: 2.95.1
>Organization:
>Environment:
redhat linux 6.0
>Description:
the case insensitive "regionMatches" method in the class "String" does not work.
the loop in the c++ code breaks on missmatch before checking the case.
>How-To-Repeat:
String s = new String("hello");
if (!s.regionMatches(true,0,"HELL",0,3))
System.err.println("your libgcj is buggy...");
>Fix:
get rid of the
if (sch != dch) break;
in the String.regionMatches(boolean...) native c++ code.
>Release-Note:
>Audit-Trail:
>Unformatted: