Project

Profile

Help

Revision 9c60224a

Added by Michael Kay about 13 years ago

Undo part of previous patch which introduced JDK 1.5 dependency (generics)

View differences:

latest9.1/bj/net/sf/saxon/Query.java
861 861
        if (exp.getExpression().isUpdatingExpression() && updating) {
862 862

  
863 863
            if (writeback) {
864
                final List<XPathException> errors = new ArrayList<XPathException>(3);
864
                final List errors = new ArrayList(3);
865 865
                UpdateAgent agent = new UpdateAgent() {
866 866
                    public void update(NodeInfo node, Controller controller) throws XPathException {
867 867
                        try {
......
881 881
                exp.runUpdate(dynamicEnv, agent);
882 882

  
883 883
                if (!errors.isEmpty()) {
884
                    throw errors.get(0);
884
                    throw (XPathException)errors.get(0);
885 885
                }
886 886
            } else {
887 887
                Set affectedDocuments = exp.runUpdate(dynamicEnv);

Also available in: Unified diff