Project

Profile

Help

Revision 38e3dad0

Added by Michael Kay over 12 years ago

Fix bug 2775942 - createPattern() fails on positional pattern

View differences:

latest9.1/bj/net/sf/saxon/sxpath/XPathEvaluator.java
192 192
    public XPathExpression createPattern(String pattern) throws XPathException {
193 193
        Pattern pat = Pattern.make(pattern, staticContext, staticContext.getExecutable());
194 194
        ExpressionVisitor visitor = ExpressionVisitor.make(staticContext);
195
        pat.analyze(visitor, null);
195
        pat.analyze(visitor, Type.NODE_TYPE);
196 196
        SlotManager map = staticContext.getStackFrameMap();
197 197
        int slots = map.getNumberOfVariables();
198 198
        slots = pat.allocateSlots(staticContext, map, slots);

Also available in: Unified diff