xml-xalan-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zong...@apache.org
Subject svn commit: r412506 - /xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/IdKeyPattern.java
Date Wed, 07 Jun 2006 19:54:40 GMT
Author: zongaro
Date: Wed Jun  7 12:54:39 2006
New Revision: 412506

URL: http://svn.apache.org/viewvc?rev=412506&view=rev
Log:
Part of fix for XALANJ-2294.  Generated code was passing node identities to
KeyIndex.lookupId and KeyIndex.lookupKey.  It should pass node handles in order
to be able to take into account which document contains the node.

Reviewed by Christine Li (jycli () ca ! ibm ! com)

Modified:
    xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/IdKeyPattern.java

Modified: xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/IdKeyPattern.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/IdKeyPattern.java?rev=412506&r1=412505&r2=412506&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/IdKeyPattern.java (original)
+++ xalan/java/trunk/src/org/apache/xalan/xsltc/compiler/IdKeyPattern.java Wed Jun  7 12:54:39
2006
@@ -111,20 +111,10 @@
 	il.append(new PUSH(cpg,_value));
 	if (this instanceof IdPattern)
 	{
-		il.append(SWAP);
-		il.append(methodGen.loadDOM());
-		il.append(SWAP);
-	    il.append(new INVOKEINTERFACE(getNodeIdent, 2));
-	    il.append(SWAP);
 	    il.append(new INVOKEVIRTUAL(lookupId));
 	}
 	else
 	{
-		il.append(SWAP);
-		il.append(methodGen.loadDOM());
-		il.append(SWAP);
-	    il.append(new INVOKEINTERFACE(getNodeIdent, 2));
-	    il.append(SWAP);
 	    il.append(new INVOKEVIRTUAL(lookupKey));
 	}
 



---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message