[
https://issues.apache.org/jira/browse/CAMEL-8160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Celerity updated CAMEL-8160:
-----------------------------------
Attachment: cameljava8.zip
Sample maven project with spring boot, camel 2.14.0. Executes successfully
with JDK 7. Fails on JDK 8. Using maven to set the source/target version to
1.7 while using the 1.8 compiler also fails.
This was built on Mac OS Yosemite with JDK 1.8.0_25 from Oracle.
> Generic methods used as endpoints fail in Java 8
> ------------------------------------------------
>
> Key: CAMEL-8160
> URL: https://issues.apache.org/jira/browse/CAMEL-8160
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.14.0, 2.14.1
> Environment: mac, java 8
> Reporter: Andrew Celerity
> Attachments: cameljava8.zip
>
>
> In Java 8 annotations are duplicated to generics' bridge methods. Camel,
> rightly, does not support bridge methods as endpoints. However, because of
> this change in the language annotations such as @Consume will end up on them
> after compilation leaving Camel in an invalid state.
> I will attach a sample project.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)