Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6759622

Clarify what EventClient.getListeners list does

    Details

    • Subcomponent:
    • Resolved In Build:
      b40
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      As of JDK 7 b37, when you call the EventClient method addEventClientListener(), it doesn't add an entry in the Collection returned by the method getListeners().
      Is it an implementation defect ?
      getListeners() is documented that way:

      Returns the set of listeners that have been added through this EventClient and not subsequently removed.

      I'm not sure it's clear enough listeners added with addEventClientListener() aren't added "through this EventClient".
      That said, if getListeners()'s implementation is right to not return listener(s) added with addEventClientListener() then how can we list them ? Need for an extra method ?

        Attachments

          Activity

            People

            • Assignee:
              emcmanus Eamonn McManus
              Reporter:
              yjoan Yves Joan (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: