You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Roland Weber (JIRA)" <ji...@apache.org> on 2007/07/15 11:26:04 UTC

[jira] Commented: (HTTPCLIENT-665) Change access to internal maps of HttpState to protected.

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512785 ] 

Roland Weber commented on HTTPCLIENT-665:
-----------------------------------------

Changing attribute visibility in HttpState will only affect applications that extend this class and use the same attribute names.
If I am not mistaken, Java allows re-use of attribute names in derived classes, and scoping will make sure that the behavior remains the same as it is now.
If there are problems with name clashes, the workaround is to rename the attributes in the derived classes.

Based on the non-impact on existing applications, I am in favor of this change.

cheers,
  Roland


> Change access to internal maps of HttpState to protected.
> ---------------------------------------------------------
>
>                 Key: HTTPCLIENT-665
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-665
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 3.0 Final
>            Reporter: Lars George
>            Priority: Trivial
>
> To be able to serialize the conversational state of a http session access to the internal maps of HttpState is required. Currently they are all "private", so subclasses cannot access them. Changing the access to "protected" will allow any subclass to access those maps.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org