You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mb...@apache.org on 2007/01/31 17:24:59 UTC

svn commit: r501878 - in /jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler: ExpressionPath.java Path.java

Author: mbenson
Date: Wed Jan 31 08:24:54 2007
New Revision: 501878

URL: http://svn.apache.org/viewvc?view=rev&rev=501878
Log:
synchronize lazy checks; JXPATH-76

Modified:
    jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/ExpressionPath.java
    jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/Path.java

Modified: jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/ExpressionPath.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/ExpressionPath.java?view=diff&rev=501878&r1=501877&r2=501878
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/ExpressionPath.java (original)
+++ jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/ExpressionPath.java Wed Jan 31 08:24:54 2007
@@ -85,7 +85,7 @@
      * Recognized paths formatted as <code>$x[3]/foo[2]</code>.  The
      * evaluation of such "simple" paths is optimized and streamlined.
      */
-    public boolean isSimpleExpressionPath() {
+    public synchronized boolean isSimpleExpressionPath() {
         if (!basicKnown) {
             basicKnown = true;
             basic = isSimplePath() && areBasicPredicates(getPredicates());

Modified: jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/Path.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/Path.java?view=diff&rev=501878&r1=501877&r2=501878
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/Path.java (original)
+++ jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/Path.java Wed Jan 31 08:24:54 2007
@@ -69,7 +69,7 @@
      * </code>.  The evaluation of such "simple" paths is optimized and
      * streamlined.
      */
-    public boolean isSimplePath() {
+    public synchronized boolean isSimplePath() {
         if (!basicKnown) {
             basicKnown = true;
             basic = true;



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org