ClassCastException thrown by UserManager.getAllGroups

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 5.0.1
    • Affects Version/s: 5.0
    • Component/s: Java API
    • 5

      java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Set
       	at com.atlassian.jira.user.util.DefaultUserManager.getAllGroups(DefaultUserManager.java:255)
      
          @Override
          public Set<Group> getAllGroups()
          {
              return (Set<Group>) getGroups();
          }
      

      is incorrect. getGroups() return now ArrayList (when the conversion from what crowd returns is not needed)!
      The workaround requires changing the code to use getGroups() and recompile the plugin.

              Assignee:
              Matt Quail (Inactive)
              Reporter:
              Wojtek Seliga (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: