Camel Plugin
  1. Camel Plugin
  2. GPCAMEL-1

Camel plugin: @override annotation provokes random compilation failure

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Linux (Ubuntu 8.04), Java 1.5, Java 6

      Description

      On project compilation, I get compilation errors about @override annotated methods that do not override a function from their parent classes.
      Editing the files and deleting @Override solves the problem.

      What is weird is that it does this on my colleague's laptot, but not on mine.

      Here is the full error:

      
      

      Welcome to Grails 1.1 - http://grails.org/
      Licensed under Apache Standard License 2.0
      Grails home is set to: /home/user/grails-1.1

      Base Directory: /home/user/NetBeansProjects/nvconnect-plugin Running script /home/user/grails-1.1/scripts/Compile.groovy Environment set to development mkdir Created dir: /home/user/.grails/1.1/projects/myproject/classes groovyc Compiling 8 source files to /home/user/.grails/1.1/projects/myproject/classes groovyc org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Compile error during compilation with javac. groovyc /home/user/.grails/1.1/projects/myproject/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/ClosureProcessor.java:22: method does not override a method from its superclass groovyc @Override groovyc ^ groovyc /home/user/.grails/1.1/projects/myproject/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/DefaultGrailsRouteClass.java:24: method does not override a method from its superclass groovyc @Override groovyc ^ groovyc /home/user/.grails/1.1/projects/myproject/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/GrailsRouteBuilderFactoryBean.java:19: method does not override a method from its superclass groovyc @Override groovyc ^ groovyc /home/user/.grails/1.1/projects/myproject/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/GrailsRouteBuilderFactoryBean.java:25: method does not override a method from its superclass groovyc @Override groovyc ^ groovyc /home/user/.grails/1.1/projects/myproject/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/GrailsRouteBuilderFactoryBean.java:30: method does not override a method from its superclass groovyc @Override groovyc ^ groovyc 5 errors groovyc groovyc groovyc 1 error Error executing script Compile: : Compilation Failed gant.TargetExecutionException: : Compilation Failed at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:331) at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334) at gant.Gant$_dispatch_closure6.doCall(Gant.groovy) at gant.Gant.withBuildListeners(Gant.groovy:344) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) at gant.Gant.dispatch(Gant.groovy:334) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.processTargets(Gant.groovy:495) at gant.Gant.processTargets(Gant.groovy:480) Caused by: : Compilation Failed at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:807) at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:540) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at _GrailsCompile_groovy$_run_closure3_closure7.doCall(_GrailsCompile_groovy:102) at _GrailsCompile_groovy$_run_closure3_closure7.doCall(_GrailsCompile_groovy) at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269) at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy:89) at _GrailsCompile_groovy$_run_closure2.doCall(_GrailsCompile_groovy:55) at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324) ... 10 more Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Compile error during compilation with javac. /home/user/.grails/1.1/projects/myproject/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/ClosureProcessor.java:22: method does not override a method from its superclass @Override ^ /home/user/.grails/1.1/projects/myproject/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/DefaultGrailsRouteClass.java:24: method does not override a method from its superclass @Override ^ /home/user/.grails/1.1/projects/myproject/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/GrailsRouteBuilderFactoryBean.java:19: method does not override a method from its superclass @Override ^ /home/user/.grails/1.1/projects/myproject/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/GrailsRouteBuilderFactoryBean.java:25: method does not override a method from its superclass @Override ^ /home/user/.grails/1.1/projects/myproject/plugins/camel-0.2/src/java/org/ix/grails/plugins/camel/GrailsRouteBuilderFactoryBean.java:30: method does not override a method from its superclass @Override ^ 5 errors

      1 error

      at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:296) at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:143) at org.codehaus.groovy.tools.javac.JavacJavaCompiler.addJavacError(JavacJavaCompiler.java:89) at org.codehaus.groovy.tools.javac.JavacJavaCompiler.compile(JavacJavaCompiler.java:71) at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.gotoPhase(JavaAwareCompilationUnit.java:89) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:478) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:445) at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:57) at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:173) at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:792) ... 19 more

      {/code}

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Antoine Roux
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: