You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "TangYong (JIRA)" <ji...@apache.org> on 2013/05/03 16:06:16 UTC
[jira] [Comment Edited] (ARIES-1006) Compilation error with JDK7
[ https://issues.apache.org/jira/browse/ARIES-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13648426#comment-13648426 ]
TangYong edited comment on ARIES-1006 at 5/3/13 2:05 PM:
---------------------------------------------------------
Tim,
I suggest doing the following :
1) using your patch
2) building the whole aries modules , and once meeting error liking deprecated api(previously I found that on jdk7 building env, many error is related to using deprecated api), adding @SuppressWarnings("deprecation") , then building again to see whether OK.
was (Author: tangyong):
Tim,
I suggest doing the following :
1) using your patch
2) building the whole aries modules , and once meeting error liking deprecated api, adding @SuppressWarnings("deprecation") , then building again to see whether OK.
> Compilation error with JDK7
> ---------------------------
>
> Key: ARIES-1006
> URL: https://issues.apache.org/jira/browse/ARIES-1006
> Project: Aries
> Issue Type: Bug
> Reporter: Jean-Baptiste Onofré
> Assignee: Timothy Ward
>
> When I try to compile Aries with JDK 7, I have:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project org.apache.aries.testsupport.unit: Compilation failure: Compilation failure:
> [ERROR] could not parse error message: warning: [options] bootstrap class path not set in conjunction with -source 1.5
> [ERROR] /home/jbonofre/workspace/aries/testsupport/testsupport-unit/src/main/java/org/apache/aries/mocks/BundleMock.java:187: warning: [deprecation] toURL() in File has been deprecated
> [ERROR] this(name,properties,location.toURL().toExternalForm());
> [ERROR] ^
> [ERROR]
> [ERROR] /home/jbonofre/workspace/aries/testsupport/testsupport-unit/src/main/java/org/apache/aries/mocks/BundleMock.java:[239,17] [deprecation] toURL() in File has been deprecated
> [ERROR]
> [ERROR] /home/jbonofre/workspace/aries/testsupport/testsupport-unit/src/main/java/org/apache/aries/mocks/BundleMock.java:[263,60] [deprecation] toURL() in File has been deprecated
> [ERROR]
> [ERROR] /home/jbonofre/workspace/aries/testsupport/testsupport-unit/src/main/java/org/apache/aries/mocks/BundleMock.java:[328,65] [deprecation] toURL() in File has been deprecated
> [ERROR]
> It's due to some parent POM definition which force JDK5 support (target and source).
> I don't think that the JDK5 support is still required. I gonna prepare a couple of patches about that.
--
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