xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <sat...@pramati.com>
Subject bug in crimson jar(1.1.3)
Date Thu, 29 Apr 2004 09:34:31 GMT
Hi,

There is a bug in crimson jar(1.1.3) in the following file.

org\apache\crimson\parser\InputEntity.java, in the method

//        public void init(InputSource in, String name, InputEntity stack,
//               boolean isPE) throws IOException, SAXException


//reader = XmlReader.createReader(url.openStream()); // line no 208

but url.openStream() method takes a lock on the url, if url is a file url
we can not delete this till JVM exits. we can suppress this locking by
doing so

//----------------------
URLConnection urlConnection = url.openConnection();
urlConnection.setUseCaches(false);
inputStream = urlConnection.getInputStream();
reader = XmlReader.createReader(inputStream);
//--------------------------

if you want me to send the patch file, pl let me know.

regards,
Sato.




---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message