Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD4839A78 for ; Tue, 25 Oct 2011 19:10:53 +0000 (UTC) Received: (qmail 37495 invoked by uid 500); 25 Oct 2011 19:10:52 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 37429 invoked by uid 500); 25 Oct 2011 19:10:52 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 37359 invoked by uid 99); 25 Oct 2011 19:10:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 19:10:52 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 19:10:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4C44C31B5AE for ; Tue, 25 Oct 2011 19:08:32 +0000 (UTC) Date: Tue, 25 Oct 2011 19:08:32 +0000 (UTC) From: "Cedric Nanni (Created) (JIRA)" To: issues@commons.apache.org Message-ID: <1044649444.14707.1319569712313.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (VFS-369) Comppilation Issue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Comppilation Issue ------------------ Key: VFS-369 URL: https://issues.apache.org/jira/browse/VFS-369 Project: Commons VFS Issue Type: Bug Affects Versions: 2.0 Reporter: Cedric Nanni When I try to compile VFS on my computer I've got compilation errors due maybe because I use a more recent version of jackrabbit. I patched the code and now it compiles. diff -rupN original//org/apache/commons/vfs2/provider/webdav/ExceptionConverter.java patched//org/apache/commons/vfs2/provider/webdav/ExceptionConverter.java --- original//org/apache/commons/vfs2/provider/webdav/ExceptionConverter.java 2011-08-18 06:57:10.000000000 +0200 +++ patched//org/apache/commons/vfs2/provider/webdav/ExceptionConverter.java 2011-10-24 20:35:41.000000000 +0200 @@ -50,7 +50,7 @@ public final class ExceptionConverter { try { - Element error = davExc.toXml(DomUtil.BUILDER_FACTORY.newDocumentBuilder().newDocument()); + Element error = davExc.toXml(DomUtil.createDocument()); if (DomUtil.matches(error, DavException.XML_ERROR, DavConstants.NAMESPACE)) { if (DomUtil.hasChildElement(error, "exception", null)) diff -rupN original//org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java patched//org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java --- original//org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java 2011-08-18 06:57:10.000000000 +0200 +++ patched//org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java 2011-10-24 20:35:41.000000000 +0200 @@ -292,19 +292,17 @@ public class WebdavFileObject extends Ht URLFileName fileName = (URLFileName) getName(); DavPropertySet properties = getProperties(fileName, PropFindMethod.PROPFIND_ALL_PROP, new DavPropertyNameSet(), false); - @SuppressWarnings("unchecked") // iterator() is documented to return DavProperty instances - Iterator iter = properties.iterator(); + Iterator iter = properties.iterator(); while (iter.hasNext()) { - DavProperty property = iter.next(); + DavProperty property = (DavProperty)iter.next(); attributes.put(property.getName().toString(), property.getValue()); } properties = getPropertyNames(fileName); - @SuppressWarnings("unchecked") // iterator() is documented to return DavProperty instances - Iterator iter2 = properties.iterator(); + Iterator iter2 = properties.iterator(); while (iter2.hasNext()) { - DavProperty property = iter2.next(); + DavProperty property = (DavProperty)iter2.next(); if (!attributes.containsKey(property.getName().getName())) { property = getProperty(fileName, property.getName()); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira