Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3569

Fix compiler error in code generated by camel-archetype-component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • tooling
    • None

    Description

      Sample output:

      [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ camel-xxx ---
      [WARNING] File encoding has not been set, using platform encoding MacRoman, i.e. build is platform dependent!
      [INFO] Compiling 4 source files to /w1/apache/camel/projects/camel-xxx/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] /w1/apache/camel/projects/camel-xxx/src/main/java/org/apache/camel/example/HelloWorldConsumer.java:[28,7] org.apache.camel.example.HelloWorldConsumer is not abstract and does not override abstract method poll() in org.apache.camel.impl.ScheduledPollConsumer
      [ERROR] /w1/apache/camel/projects/camel-xxx/src/main/java/org/apache/camel/example/HelloWorldConsumer.java:[38,19] poll() in org.apache.camel.example.HelloWorldConsumer cannot override poll() in org.apache.camel.impl.ScheduledPollConsumer; attempting to use incompatible return type
      found   : void
      required: int
      [ERROR] /w1/apache/camel/projects/camel-xxx/src/main/java/org/apache/camel/example/HelloWorldConsumer.java:[36,4] method does not override or implement a method from a supertype
      [INFO] 3 errors 
      

      Attachments

        Activity

          People

            hadrian Hadrian Zbarcea
            hadrian Hadrian Zbarcea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: