Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-38654

Type erasure bug in UsageSessionService#getOpenSessionsByServer()

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 11.4, 12.0
    • Fix Version/s: 12.0, 19.0
    • Component/s: Kernel
    • Labels:
    • 12 status:
      Resolved
    • Previous Issue Keys:
      KNL-1585
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      The UsageSessionService interface  defines the return type of the method getOpenSessionsByServer() as Map<String,UsageSession>.

      The return type stated in the Javadoc (which matches what's actually being returned) is Map<String,List<UsageSession>>.

      (More precise: the implementation returns a Treemap mapping Strings to Vectors containing UsageSessions)

       

      This doesn't cause problems (so far) because the method in the API interface isn't used (yet); all classes using that method still seem to use the static cover version instead - which simply returns an unparameterized Map.

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hendrik Hendrik Steller
                Reporter:
                hendrik Hendrik Steller
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code