--- old/src/java.xml/share/classes/javax/xml/xpath/XPathException.java 2017-11-06 22:19:42.499504328 -0800 +++ new/src/java.xml/share/classes/javax/xml/xpath/XPathException.java 2017-11-06 22:19:41.982453897 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -110,7 +110,7 @@ throws IOException { ObjectOutputStream.PutField fields = out.putFields(); - fields.put("cause", (Throwable) super.getCause()); + fields.put("cause", super.getCause()); out.writeFields(); }