You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xbean-dev@geronimo.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2013/01/31 16:05:15 UTC

[jira] [Created] (XBEAN-239) toURL() is deprecated and causes a build error

Mark Struberg created XBEAN-239:
-----------------------------------

             Summary: 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