You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sa...@apache.org on 2002/08/23 21:20:54 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler RelationalExpr.java
santiagopg 2002/08/23 12:20:54
Modified: java/src/org/apache/xalan/xsltc/compiler RelationalExpr.java
Log:
Fix for bugzilla 11987. Missing case in typeCheck() method.
Revision Changes Path
1.13 +5 -2 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/RelationalExpr.java
Index: RelationalExpr.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/RelationalExpr.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- RelationalExpr.java 1 Feb 2002 20:07:08 -0000 1.12
+++ RelationalExpr.java 23 Aug 2002 19:20:53 -0000 1.13
@@ -171,10 +171,13 @@
if (tright instanceof NodeType) {
_right = new CastExpr(_right, Type.NodeSet);
}
-
// Promote integer to doubles to have fewer compares
if (tright instanceof IntType) {
_right = new CastExpr(_right, Type.Real);
+ }
+ // Promote result-trees to strings
+ if (tright instanceof ResultTreeType) {
+ _right = new CastExpr(_right, Type.String);
}
return _type = Type.Boolean;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org