Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-14238

Annotated class with @SendToUser overrides @SendTo on method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3 RC1
    • Fix Version/s: 4.3 RC2
    • Component/s: Messaging:WebSocket
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Since version 4.3 we can annotate a class with @SendToUser in order to avoid to repeat the annotation on every @MessageMapping method in the class, and that's great.

      Anyway, that creates a problem when I a method of the class uses a @SendTo annotation: instead of overriding the class wide annotation, it gets ignored.

      I think that the correct semantic should be that if a method is annotated with a @SendTo annotation it should ovverride both @SendTo and @SendToUser class wide annotations.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              dusty Alex
              Last updater:
              Spring Issuemaster
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 40 weeks, 6 days ago