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

Problems with Set returned by Subject.getPrincipals(Class)

XMLWordPrintable

    • 1.0
    • sparc
    • solaris_2.6

      The Set returned by Subject.getPrincipals(Class) has a couple problems. The toString() and toArray() methods don't include all the principals, but instead leave some out and duplicate others.

      See attached test case, which produces the following output:

      Tim missing in result string: [JAASBug2$MyPrincipal1@10595[Bob], JAASBug2$MyPrincipal1@10595[Bob]]
      Tim not in array: [Ljava.security.Principal; { JAASBug2$MyPrincipal1@10595[Bob], JAASBug2$MyPrincipal1@10595[Bob] }

            claisunw Charlie Lai (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: