[ 
https://issues.apache.org/jira/browse/CAMEL-3569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hadrian Zbarcea resolved CAMEL-3569.
------------------------------------

    Resolution: Fixed

Fixed in r1061633.

Problem caused by changed api and archetype code not updated.

> Fix compiler error in code generated by camel-archetype-component
> -----------------------------------------------------------------
>
>                 Key: CAMEL-3569
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3569
>             Project: Camel
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 2.5.0
>            Reporter: Hadrian Zbarcea
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.6.0
>
>
> Sample output:
> {code}
> [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 
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to