[ 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