Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-1930

Type parameter error in an inheriting message composer/context mapper

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.1.1
    • Component/s: tooling
    • Labels:
      None

      Description

      If I try to create a custom message composer/context mapper that subclasses existing message composer/context mapper (for example HttpMessageComposer) then the resulting class looks like:

      public class CustomMessageComposer extends HttpMessageComposer implements MessageComposer {
      }
      

      The following error is displayed: The interface MessageComposer cannot be implemented more than once with different arguments: MessageComposer<HttpBindingData> and MessageComposer

      There are two possble solutions:
      1. If a super class contains MessageComposer interface, then don't add the interface to the resulting class
      2. Parametrize MessageComposer interface w/r/t the super class's type parameter (MessageComposer<HttpBindingData>)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rcernich Rob Cernich
                Reporter:
                trohovsky Tomas Rohovsky
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: