jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r419487 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/compact/Lexer.java
Date Thu, 06 Jul 2006 08:48:06 GMT
Author: tripod
Date: Thu Jul  6 01:48:05 2006
New Revision: 419487

URL: http://svn.apache.org/viewvc?rev=419487&view=rev
Log:
JCR-475: CompactNodeTypeDefReader fails parsing 'long' value constraints

Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/compact/Lexer.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/compact/Lexer.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/compact/Lexer.java?rev=419487&r1=419486&r2=419487&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/compact/Lexer.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/compact/Lexer.java
Thu Jul  6 01:48:05 2006
@@ -129,8 +129,12 @@
             int tokenType = st.nextToken();
             if (tokenType == StreamTokenizer.TT_EOF) {
                 return EOF;
-            } else if (tokenType == StreamTokenizer.TT_WORD || tokenType == SINGLE_QUOTE
|| tokenType == DOUBLE_QUOTE) {
+            } else if (tokenType == StreamTokenizer.TT_WORD
+                    || tokenType == SINGLE_QUOTE
+                    || tokenType == DOUBLE_QUOTE) {
                 return st.sval;
+            } else if (tokenType == StreamTokenizer.TT_NUMBER) {
+                return String.valueOf(st.nval);
             } else {
                 return new String(new char[] {(char) tokenType});
             }



Mime
View raw message