geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Created] (XBEAN-239) toURL() is deprecated and causes a build error
Date Thu, 31 Jan 2013 15:05:15 GMT
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

Mime
View raw message