< prev index next >
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java
Print this page
*** 742,756 ****
if (op != Operators.EQ && op != Operators.NE) {
// If node-boolean comparison -> convert node to boolean
if (left instanceof Node || right instanceof Node) {
if (left instanceof Boolean) {
! right = new Boolean(booleanF(right));
hasSimpleArgs = true;
}
if (right instanceof Boolean) {
! left = new Boolean(booleanF(left));
hasSimpleArgs = true;
}
}
if (hasSimpleArgs) {
--- 742,756 ----
if (op != Operators.EQ && op != Operators.NE) {
// If node-boolean comparison -> convert node to boolean
if (left instanceof Node || right instanceof Node) {
if (left instanceof Boolean) {
! right = booleanF(right);
hasSimpleArgs = true;
}
if (right instanceof Boolean) {
! left = booleanF(left);
hasSimpleArgs = true;
}
}
if (hasSimpleArgs) {
< prev index next >