[ 
https://issues.apache.org/jira/browse/KI-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alan Cabrera moved JSEC-20 to KI-41:
------------------------------------

        Fix Version/s:     (was: 1.0)
          Component/s:     (was: Documentation)
    Affects Version/s:     (was: 1.0)
                  Key: KI-41  (was: JSEC-20)
              Project: Ki  (was: JSecurity)

> Update JavaDoc for return type of SecurityUtils.getSubject()
> ------------------------------------------------------------
>
>                 Key: KI-41
>                 URL: https://issues.apache.org/jira/browse/KI-41
>             Project: Ki
>          Issue Type: Task
>            Reporter: Grzegorz Borkowski
>            Assignee: Les Hazlewood
>            Priority: Trivial
>
> From JavaDoc for  SecurityUtils.getSubject() it is not clear what returns 
> this method if nobody is logged in. Does it return null? or some default 
> Subject? From Subject class documentation (getPrincipal method) I would 
> expect that SecurityUtils.getSubject() returns some default Subject, but 
> simple tests shows that it is not true - it returns null.
> So I would change it like this:
> @return the currently accessible <tt>Subject</tt> accessible to the calling 
> code or null if .... (actually when?)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to