ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <>
Subject Re: log4j failing on Gump, maybe something in recent commits
Date Thu, 18 Feb 2010 02:41:20 GMT
Stefan Bodewig wrote:
> This means in a Turkish locale "FILESET".equalsIgnoreCase("fileset") returns false

No, it returns true, as the Javadoc says it should. Try it:

$ jrunscript
js> java.util.Locale.setDefault(new java.util.Locale("tr"))
js> new java.lang.String("FILESET").equalsIgnoreCase("fileset")

> as does "FILESET".toLowerCase().equals("fileset").

This does return false:

js> new java.lang.String("FILESET").toLowerCase()
js> new java.lang.String("FILESET").toLowerCase().equals("fileset")

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message