You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by Charles Moulliard <cm...@gmail.com> on 2012/07/16 14:42:39 UTC

Compilation error

Hi,

When building Aries project, I get this error :

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
(default-compile) on project org.apache.aries.util: Compilation failure:
Compilation failure:
[ERROR] could not parse error message: warning: [options] bootstrap class
path not set in conjunction with -source 1.5
[ERROR]
/Users/chmoulli/Apache/aries/util/util/src/main/java/org/apache/aries/util/internal/R43Worker.java:36:
error: cannot find symbol
[ERROR] return b.adapt(BundleWiring.class).getClassLoader();
[ERROR] ^
[ERROR]
[ERROR] could not parse error message:   symbol:   method getClassLoader()
[ERROR] location: class Object
[ERROR]
/Users/chmoulli/Apache/aries/util/util/src/main/java/org/apache/aries/util/tracker/hook/BundleHookBundleTracker.java:109:
error: BundleHookBundleTracker.BundleEventHook is not abstract and does not
override abstract method event(BundleEvent,Collection) in EventHook
[ERROR] private class BundleEventHook implements EventHook {
[ERROR] ^
[ERROR]
[ERROR]
/Users/chmoulli/Apache/aries/util/util/src/main/java/org/apache/aries/util/tracker/hook/BundleHookBundleTracker.java:[116,16]
error: name clash: event(BundleEvent,Collection<BundleContext>) in
BundleHookBundleTracker.BundleEventHook and event(BundleEvent,Collection)
in EventHook have the same erasure, yet neither overrides the other
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :org.apache.aries.util

Is it related because we have changed JDK compilation from 1.5 to 1.6 ?

Regards,

Charles Moulliard

Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard

Compilation error

Posted by Charles Moulliard <cm...@gmail.com>.
Hi,

When building Aries project, I get this error :

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
(default-compile) on project org.apache.aries.util: Compilation failure:
Compilation failure:
[ERROR] could not parse error message: warning: [options] bootstrap class
path not set in conjunction with -source 1.5
[ERROR]
/Users/chmoulli/Apache/aries/util/util/src/main/java/org/apache/aries/util/internal/R43Worker.java:36:
error: cannot find symbol
[ERROR] return b.adapt(BundleWiring.class).getClassLoader();
[ERROR] ^
[ERROR]
[ERROR] could not parse error message:   symbol:   method getClassLoader()
[ERROR] location: class Object
[ERROR]
/Users/chmoulli/Apache/aries/util/util/src/main/java/org/apache/aries/util/tracker/hook/BundleHookBundleTracker.java:109:
error: BundleHookBundleTracker.BundleEventHook is not abstract and does not
override abstract method event(BundleEvent,Collection) in EventHook
[ERROR] private class BundleEventHook implements EventHook {
[ERROR] ^
[ERROR]
[ERROR]
/Users/chmoulli/Apache/aries/util/util/src/main/java/org/apache/aries/util/tracker/hook/BundleHookBundleTracker.java:[116,16]
error: name clash: event(BundleEvent,Collection<BundleContext>) in
BundleHookBundleTracker.BundleEventHook and event(BundleEvent,Collection)
in EventHook have the same erasure, yet neither overrides the other
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :org.apache.aries.util

Is it related because we have changed JDK compilation from 1.5 to 1.6 ?

Regards,

Charles Moulliard

Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard