Project

Profile

Help

Revision 293239c3

Added by Michael Kay over 1 year ago

Fix bug #4549

View differences:

latest9.9/hej/net/sf/saxon/functions/KeyFn.java
24 24
import net.sf.saxon.value.AtomicValue;
25 25

  
26 26

  
27
public class KeyFn extends SystemFunction {
27
public class KeyFn extends SystemFunction implements StatefulSystemFunction {
28 28

  
29 29
    private KeyDefinitionSet staticKeySet = null;
30 30

  
......
79 79
        return prop;
80 80
    }
81 81

  
82
    @Override
83
    public SystemFunction copy() {
84
        KeyFn k2 = (KeyFn) SystemFunction.makeFunction(getFunctionName().getLocalPart(), getRetainedStaticContext(), getArity());
85
        k2.staticKeySet = staticKeySet;
86
        return k2;
87
    }
88

  
82 89
    /**
83 90
     * Mapping class to filter nodes that have the origin node as an ancestor-or-self
84 91
     */

Also available in: Unified diff