Project

Profile

Help

Revision 377d5515

Added by Michael Kay over 9 years ago

3426332 Exception in compiled stylesheets using max()

View differences:

latest9.3/hej/net/sf/saxon/functions/Minimax.java
157 157
    public AtomicComparer getAtomicComparer(XPathContext context) throws XPathException {
158 158
        StringCollator collator = getCollator(1, context);
159 159
        BuiltInAtomicType type = argumentType;
160
        if (type == BuiltInAtomicType.UNTYPED_ATOMIC) {
160
        if (type.equals(BuiltInAtomicType.UNTYPED_ATOMIC)) {
161 161
            type = BuiltInAtomicType.DOUBLE;
162 162
        }
163 163
        AtomicComparer comparer =
......
299 299
                        min = test2;
300 300
                    }
301 301
                } catch (ClassCastException err) {
302
                    err.printStackTrace();
302 303
                    XPathException de = new XPathException("Cannot compare " + min.getItemType(th) + " with " + test2.getItemType(th));
303 304
                    de.setErrorCode("FORG0006");
304 305
                    de.setIsTypeError(true);

Also available in: Unified diff