You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2009/02/24 15:42:02 UTC
[jira] Commented: (HTTPCLIENT-828) Add generic types parameters to
methods
[ https://issues.apache.org/jira/browse/HTTPCLIENT-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676297#action_12676297 ]
Oleg Kalnichevski commented on HTTPCLIENT-828:
----------------------------------------------
Generics cannot be used in HttpClient 3.x code due to Java 1.2.2 compatibility requirement. You are welcome to contribute a patch for HttpClient 4.0, though
> How can I get the necessary permissions to commit this change?
One needs to become a committer in order to get permissions to commit code to the ASF repository.
Oleg
> Add generic types parameters to methods
> ---------------------------------------
>
> Key: HTTPCLIENT-828
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-828
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient
> Affects Versions: Future
> Environment: All
> Reporter: Elchin
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> There currently is a void addParameter(String paramName, String paramValue) method in org.apache.commons.httpclient.methods.PostMethod. I was thinking why not to make it to handle generic type for paramValue? It is a simple change, but will give a lot of facility, since primitive types can also be handled via autoboxing. Implementation-wise it should also not be a problem, because we can call toString method of an object, and generic types in Java by default work with object.
> How can I get the necessary permissions to commit this change?
> Thank you
> Elchin
--
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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org