[
https://issues.apache.org/jira/browse/XBEAN-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13573437#comment-13573437
]
Mark Struberg commented on XBEAN-239:
-------------------------------------
Additional patch from Romain applied. Waiting for JIRA privileges to set it to
'resolved' ;)
> 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