geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (XBEAN-239) toURL() is deprecated and causes a build error
Date Thu, 07 Feb 2013 11:55:12 GMT

     [ https://issues.apache.org/jira/browse/XBEAN-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Manni-Bucau updated XBEAN-239:
-------------------------------------

    Attachment: xbean-java7.patch

a patch to let xbean build with java 7
                
> 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
>         Attachments: xbean-java7.patch
>
>
> 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

Mime
View raw message