jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r498737 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
Date Mon, 22 Jan 2007 18:22:23 GMT
Author: reschke
Date: Mon Jan 22 10:22:21 2007
New Revision: 498737

URL: http://svn.apache.org/viewvc?view=rev&rev=498737
Log:
Use getString() rather than toString() to obtain the string value for constraint checking.

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java?view=diff&rev=498737&r1=498736&r2=498737
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
Mon Jan 22 10:22:21 2007
@@ -339,7 +339,7 @@
         }
         switch (value.getType()) {
             case PropertyType.STRING:
-                String text = value.toString();
+                String text = value.getString();
                 Matcher matcher = pattern.matcher(text);
                 if (!matcher.matches()) {
                     throw new ConstraintViolationException("'" + text  + "' does not satisfy
the constraint '" + getQualifiedDefinition() + "'");



Mime
View raw message