You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by tc...@apache.org on 2006/04/28 15:23:30 UTC

svn commit: r397896 - /jakarta/commons/sandbox/jci/trunk/core/src/java/org/apache/commons/jci/compilers/JavaCompilerFactory.java

Author: tcurdt
Date: Fri Apr 28 06:23:13 2006
New Revision: 397896

URL: http://svn.apache.org/viewcvs?rev=397896&view=rev
Log:
support any casing for the factory hint

Modified:
    jakarta/commons/sandbox/jci/trunk/core/src/java/org/apache/commons/jci/compilers/JavaCompilerFactory.java

Modified: jakarta/commons/sandbox/jci/trunk/core/src/java/org/apache/commons/jci/compilers/JavaCompilerFactory.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jci/trunk/core/src/java/org/apache/commons/jci/compilers/JavaCompilerFactory.java?rev=397896&r1=397895&r2=397896&view=diff
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/core/src/java/org/apache/commons/jci/compilers/JavaCompilerFactory.java (original)
+++ jakarta/commons/sandbox/jci/trunk/core/src/java/org/apache/commons/jci/compilers/JavaCompilerFactory.java Fri Apr 28 06:23:13 2006
@@ -61,12 +61,12 @@
 //    }
     
     private String toJavaCasing(final String pName) {
-        final char[] name = pName.toCharArray();
+        final char[] name = pName.toLowerCase().toCharArray();
         name[0] = Character.toUpperCase(name[0]);
         return new String(name);
     }
     /**
-     * Can accept the following strings "ECLIPSE", "JANINO", "GROOVY" and returns the appropriate
+     * Can accept the following strings "eclipse", "janino", "groovy" and returns the appropriate
      * JavaCompiler. Return null for any other type of string.
      * 
      * @param compiler



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org