[
https://jira.duraspace.org/browse/DS-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Masár updated DS-1499:
---------------------------
Summary: replace calls of methods deprecated in Java 6 (was: replace calls
of deprecated Java methods)
> replace calls of methods deprecated in Java 6
> ---------------------------------------------
>
> Key: DS-1499
> URL: https://jira.duraspace.org/browse/DS-1499
> Project: DSpace
> Issue Type: Sub-task
> Reporter: Ivan Masár
>
> As of DSpace 3.0, we claim to support Java 6. We still have some calls that
> are deprecated as of Java 6:
> Reading bundled API signatures: jdk-deprecated-1.6
> Loading classes to check...
> Scanning for API signatures and dependencies...
> ERROR: Forbidden method invocation: java.io.File#toURL() [Deprecated in Java
> 1.6]
> ERROR: in org.dspace.content.packager.METSManifest (METSManifest.java:203)
> ERROR: Forbidden method invocation: java.io.File#toURL() [Deprecated in Java
> 1.6]
> ERROR: in org.dspace.app.util.GoogleMetadata (GoogleMetadata.java:140)
> ERROR: Forbidden method invocation: java.util.Date#getYear() [Deprecated in
> Java 1.6]
> ERROR: in org.dspace.statistics.content.StatisticsDataWorkflow
> (StatisticsDataWorkflow.java:145)
> ERROR: Forbidden method invocation: java.util.Date#getMonth() [Deprecated in
> Java 1.6]
> ERROR: in org.dspace.statistics.content.StatisticsDataWorkflow
> (StatisticsDataWorkflow.java:145)
> ERROR: Forbidden method invocation: java.util.Date#getYear() [Deprecated in
> Java 1.6]
> ERROR: in org.dspace.statistics.content.StatisticsDataWorkflow
> (StatisticsDataWorkflow.java:146)
> ERROR: Forbidden method invocation: java.util.Date#getMonth() [Deprecated in
> Java 1.6]
> ERROR: in org.dspace.statistics.content.StatisticsDataWorkflow
> (StatisticsDataWorkflow.java:146)
> ERROR: Scanned 1434 (and 932 related) class file(s) for forbidden API
> invocations (in 8.54s), 6 error(s).
> ERROR: Check for forbidden API calls failed, see log.
> The Date.* calls can be replaced by Calendar.get() calls, see:
> http://stackoverflow.com/questions/7182996/java-get-month-integer-from-date
> The toURL() call should be replaced by URI.toURI() and then URI.toURL(), see:
> http://docs.oracle.com/javase/6/docs/api/java/io/File.html
--
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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel