You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2010/02/17 13:18:56 UTC

svn commit: r910945 - /activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java

Author: gtully
Date: Wed Feb 17 12:18:55 2010
New Revision: 910945

URL: http://svn.apache.org/viewvc?rev=910945&view=rev
Log:
merge -c 910637 https://svn.apache.org/repos/asf/activemq/trunk - resolve Locale dependent toUpperCase in IntrospectionSupport. - AMQ-2608

Modified:
    activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java

Modified: activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java?rev=910945&r1=910944&r2=910945&view=diff
==============================================================================
--- activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java (original)
+++ activemq/branches/activemq-5.3/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java Wed Feb 17 12:18:55 2010
@@ -218,7 +218,7 @@
 
     private static Method findSetterMethod(Class clazz, String name) {
         // Build the method name.
-        name = "set" + name.substring(0, 1).toUpperCase() + name.substring(1);
+        name = "set" + Character.toUpperCase(name.charAt(0)) + name.substring(1);
         Method[] methods = clazz.getMethods();
         for (int i = 0; i < methods.length; i++) {
             Method method = methods[i];