commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Resolved] (NET-396) POP3.setState() should not be public
Date Tue, 12 Apr 2011 19:02:05 GMT


Sebb resolved NET-396.

       Resolution: Not A Problem
    Fix Version/s:     (was: 3.0)
         Assignee:     (was: Daniel Savarese)

Method needs to remain public.

> POP3.setState() should not be public
> ------------------------------------
>                 Key: NET-396
>                 URL:
>             Project: Commons Net
>          Issue Type: Bug
>          Components: POP3
>    Affects Versions: 2.2
>            Reporter: Sebb
> 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:

View raw message