directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r614556 - in /directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias: AliasesStringParser.java AliasesStringScanner.java
Date Wed, 23 Jan 2008 15:01:01 GMT
Author: pamarcelot
Date: Wed Jan 23 07:01:00 2008
New Revision: 614556

URL: http://svn.apache.org/viewvc?rev=614556&view=rev
Log:
Fixed a bug in the Aliases String Parser when an alias was finishing on an error.

Modified:
    directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias/AliasesStringParser.java
    directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias/AliasesStringScanner.java

Modified: directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias/AliasesStringParser.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias/AliasesStringParser.java?rev=614556&r1=614555&r2=614556&view=diff
==============================================================================
--- directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias/AliasesStringParser.java
(original)
+++ directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias/AliasesStringParser.java
Wed Jan 23 07:01:00 2008
@@ -96,6 +96,7 @@
                     }
                     else
                     {
+                        aliases.add( new AliasWithStartError( previousTokenValue, previousTokenValue.charAt(
0 ) ) );
                         continue;
                     }
                 }
@@ -112,6 +113,8 @@
                     }
                     else
                     {
+                        aliases.add( new AliasWithPartError( previousTokenValue, previousTokenValue
+                            .charAt( previousTokenValue.length() - 1 ) ) );
                         continue;
                     }
                 }

Modified: directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias/AliasesStringScanner.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias/AliasesStringScanner.java?rev=614556&r1=614555&r2=614556&view=diff
==============================================================================
--- directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias/AliasesStringScanner.java
(original)
+++ directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/alias/AliasesStringScanner.java
Wed Jan 23 07:01:00 2008
@@ -178,7 +178,6 @@
 
                 c = nextChar();
             }
-            prevChar();
 
             if ( hasError )
             {
@@ -187,6 +186,8 @@
             }
             else
             {
+                prevChar();
+                
                 lastTokenType = AliasesStringToken.ALIAS;
                 return new AliasesStringToken( lastTokenType, sb.toString(), pos - sb.length()
+ 1 );
             }



Mime
View raw message