classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] java.util.regex.Matcher.matches() fix


From: Timo Juhani Lindfors
Subject: [cp-patches] java.util.regex.Matcher.matches() fix
Date: Fri, 4 Feb 2005 22:55:26 +0200
User-agent: Mutt/1.3.28i

Hi all,

java.util.regex.Pattern.matches("b", "ab")

returns false with SUN's JVM but true with GNU classpath.

matches() shouldn't call find() because find() returns true if _any_
part of the input matches and matches() should return true only if the
_whole_ input matches.

The attached patch fixes the problem for me but I'm very new to GNU
classpath so I might have missed something. Could you please take a
look at the patch and commit if you agree?

Best regards,
Timo Lindfors

Attachment: java.util.regex.Matcher.matches.diff
Description: Text document

Attachment: pgp8dlWaH6Dg5.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]