Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4458

Hide all the recursive generics types with the concrete implementation to satisfy Kotlin restrictions

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 5.1 M1, 5.0.5
    • Component/s: DSL
    • Labels:
    • Environment:
      Java DSL from Kotlin

      Description

      According Kotlin generics system restrictions we can't expose API based on the recursive generics, like we have with Java DSL for JMS:

      public static <S extends JmsMessageDrivenChannelAdapterSpec<S>>
      	JmsMessageDrivenChannelAdapterSpec<S> messageDrivenChannelAdapter(
      			AbstractMessageListenerContainer listenerContainer) {
      	return new JmsMessageDrivenChannelAdapterSpec<S>(listenerContainer);
      }
      

      We must expose a target implementation to hide generics at all in these cases.

      Also see a discussion on Gitter: https://gitter.im/spring-projects/spring-integration?at=5ae72699c3072ad76f1d5cf9

        Attachments

          Activity

            People

            • Assignee:
              abilan Artem Bilan
              Reporter:
              abilan Artem Bilan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: