Return-Path: X-Original-To: apmail-geronimo-xbean-dev-archive@minotaur.apache.org Delivered-To: apmail-geronimo-xbean-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0DAD8E24A for ; Thu, 31 Jan 2013 15:15:15 +0000 (UTC) Received: (qmail 79422 invoked by uid 500); 31 Jan 2013 15:15:14 -0000 Delivered-To: apmail-geronimo-xbean-dev-archive@geronimo.apache.org Received: (qmail 78928 invoked by uid 500); 31 Jan 2013 15:15:13 -0000 Mailing-List: contact xbean-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xbean-dev@geronimo.apache.org Delivered-To: mailing list xbean-dev@geronimo.apache.org Received: (qmail 78753 invoked by uid 99); 31 Jan 2013 15:15:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2013 15:15:13 +0000 Date: Thu, 31 Jan 2013 15:15:13 +0000 (UTC) From: "Mark Struberg (JIRA)" To: xbean-dev@geronimo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (XBEAN-239) toURL() is deprecated and causes a build error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/XBEAN-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13567706#comment-13567706 ] Mark Struberg commented on XBEAN-239: ------------------------------------- There is another one [ERROR] /Users/struberg/develop/java/apache/geronimo/xbean/xbean-classpath/src/main/java/org/apache/xbean/classpath/SunURLClassPath.java:[64,22] URLClassPath is internal proprietary API and may be removed in a future release > toURL() is deprecated and causes a build error > ---------------------------------------------- > > Key: XBEAN-239 > URL: https://issues.apache.org/jira/browse/XBEAN-239 > Project: XBean > Issue Type: Bug > Affects Versions: 3.12 > Reporter: Mark Struberg > > When compiling XBean I get the following error > [ERROR] /Users/struberg/develop/java/apache/geronimo/xbean/xbean-spring/src/main/java/org/apache/xbean/spring/generator/QdoxMappingLoader.java:545: warning: [deprecation] toURL() in File has been deprecated > [ERROR] builder.addSource(new URL("jar:" + base.toURL().toString() + "!/" + name)); > The solution is to replace toURL() with .toURI().toURL(). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira