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

Generic methods used as endpoints fail in Java 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.0
    • 2.14.2, 2.15.0
    • camel-core
    • None
    • mac, java 8

    • Unknown

    Description

      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 ticket is from this discussion thread: http://camel.465427.n5.nabble.com/Changes-in-Java-8-generics-breaking-Camel-td5760638.html

      Attachments

        1. cameljava8.zip
          11 kB
          Andrew Celerity

        Activity

          People

            bvahdat Babak Vahdat
            andrewcelerity Andrew Celerity
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: