Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1065

Incorrect matching of parameterized events

VotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.6.0
    • Component/s: Events
    • Labels:
      None

      Description

      Scenario

      An event fired by

      @Inject
      private Event<List<Integer>> event;
      

      is observed by

      void observeWildcardNumberList(@Observes List<? extends Number> numbers);
      
      void observeNumberList(@Observes List<Number> numbers);
      
      void observeIntegerList(@Observes List<Integer> numbers);
      

      Expected behaviour

      observeWildcardNumberList() and observeIntegerList() get triggered, observeNumberList() does not get triggered.

      Actual behaviour

      All three observer methods get triggered.

      This looks like a missing test case for the TCK.

        Attachments

        1. OWB-1065.zip
          5 kB
          Harald Wellmann

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              hwellmann Harald Wellmann

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment