This is the mail archive of the java-prs@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libgcj/369: "String.regionMatches(true..." doesn't work



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]