incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1499681 - /sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/Validator.java
Date Thu, 04 Jul 2013 08:46:08 GMT
Author: cziegeler
Date: Thu Jul  4 08:46:07 2013
New Revision: 1499681

URL: http://svn.apache.org/r1499681
Log:
SLING-2933 :   Wasted work in ValidateVisitor.getJspAttribute() 

Modified:
    sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/Validator.java

Modified: sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/Validator.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/Validator.java?rev=1499681&r1=1499680&r2=1499681&view=diff
==============================================================================
--- sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/Validator.java
(original)
+++ sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/jasper/compiler/Validator.java
Thu Jul  4 08:46:07 2013
@@ -1333,7 +1333,7 @@ class Validator {
 
                     boolean deferred = false;
                     Iterator<ELNode> nodes = el.iterator();
-                    while (nodes.hasNext()) {
+                    while (nodes.hasNext() && !deferred) {
                         ELNode node = nodes.next();
                         if (node instanceof ELNode.Root) {
                             if (((ELNode.Root) node).getType() == '#') {



Mime
View raw message