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

Sebb resolved NET-396.
----------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Changed public method to do nothing, deprecated, and added package method for 
use by POP3 classes

> POP3.setState() should not be public
> ------------------------------------
>
>                 Key: NET-396
>                 URL: https://issues.apache.org/jira/browse/NET-396
>             Project: Commons Net
>          Issue Type: Bug
>          Components: POP3
>    Affects Versions: 2.2
>            Reporter: Sebb
>             Fix For: 3.0
>
>
> The POP3 method setState() is public. However, the state should only be 
> settable by library methods, not by client code, otherwise the state checks 
> won't work correctly.
> Changing the visibility would break binary compatibility.
> To maintain compatibility there could be a new method (package-private, which 
> would give test cases access) which is allowed to set the state. Also change 
> the public method to either do nothing or throw an 
> UnsupportedOperationException.
> The getState() method can remain public.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to