[ http://jira.codehaus.org/browse/MSHADE-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MSHADE-26. ----------------------------------- Assignee: Benjamin Bentmann Resolution: Fixed Fix Version/s: 1.1 Fixed in [r644743|http://svn.apache.org/viewvc?view=rev&revision=644743]. > Fix case-insensitive string comparisions in resource transformers > ----------------------------------------------------------------- > > Key: MSHADE-26 > URL: http://jira.codehaus.org/browse/MSHADE-26 > Project: Maven 2.x Shade Plugin > Issue Type: Bug > Affects Versions: 1.0.1 > Reporter: Benjamin Bentmann > Assignee: Benjamin Bentmann > Fix For: 1.1 > > > {{[String.toLowerCase()|http://java.sun.com/javase/6/docs/api/java/lang/String.html#toLowerCase()]}} > is sensitive to the JVM's default locale and hence platform-dependent, > potentially yielding wrong build output. For instance: > {code:java} > Locale.setDefault( new Locale( "en" ) ); > System.out.println( "META-INF/NOTICE".toLowerCase().equals( "meta-inf/notice" > ) ); > Locale.setDefault( new Locale( "tr" ) ); > System.out.println( "META-INF/NOTICE".toLowerCase().equals( "meta-inf/notice" > ) ); > {code} > will print > {noformat} > true > false > {noformat} > See also [Common > Bugs|http://www.nabble.com/Common-Bugs-to14783703s177.html#a14931921]. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira