1.1 --- a/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/internalizer/Internalizer.java Fri Feb 14 10:53:55 2014 +0100 1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/internalizer/Internalizer.java Fri Feb 14 11:13:45 2014 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -76,8 +76,6 @@ 1.11 1.12 private static final String WSDL_NS = "http://schemas.xmlsoap.org/wsdl/"; 1.13 1.14 - private static XPathFactory xpf = null; 1.15 - 1.16 private final XPath xpath; 1.17 1.18 /** 1.19 @@ -99,12 +97,7 @@ 1.20 this.errorHandler = forest.getErrorHandler(); 1.21 this.forest = forest; 1.22 this.enableSCD = enableSCD; 1.23 - synchronized (this) { 1.24 - if (xpf == null) { 1.25 - xpf = XmlFactory.createXPathFactory(disableSecureProcessing); 1.26 - } 1.27 - } 1.28 - xpath = xpf.newXPath(); 1.29 + xpath = XmlFactory.createXPathFactory(disableSecureProcessing).newXPath(); 1.30 } 1.31 1.32 /**