cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r439603 - /incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/validation/BeanValidationFailure.java
Date Sat, 02 Sep 2006 14:28:38 GMT
Author: aadamchik
Date: Sat Sep  2 07:28:38 2006
New Revision: 439603

URL: http://svn.apache.org/viewvc?rev=439603&view=rev
Log:
a minor glitch in validation routine that failed validation on java non-promitive arrays

Modified:
    incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/validation/BeanValidationFailure.java

Modified: incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/validation/BeanValidationFailure.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/validation/BeanValidationFailure.java?rev=439603&r1=439602&r2=439603&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/validation/BeanValidationFailure.java
(original)
+++ incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/validation/BeanValidationFailure.java
Sat Sep  2 07:28:38 2006
@@ -154,17 +154,9 @@
                     " starts with invalid character: " + c));
         }
 
-        // handle primitive arrays like byte[]
+        // handle arrays
         if (identifier.endsWith("[]")) {
-            for (int i = 1; i < (identifier.length() - 2); i++) {
-                c = identifier.charAt(i);
-                if (Character.getType(c) != Character.LOWERCASE_LETTER) {
-                    return new BeanValidationFailure(bean, attribute, validationMessage(
-                            attribute,
-                            " is not a valid Java Class Name: " + identifier));
-                }
-            }
-            return null;
+            identifier = identifier.substring(0, identifier.length() - 2);
         }
 
         boolean wasDot = false;



Mime
View raw message