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 2012/05/05 17:59:56 UTC

[jira] [Resolved] (HTTPCLIENT-1189) URLEncodedUtils.java compile error: no suitable method found for parse(...

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

Oleg Kalnichevski resolved HTTPCLIENT-1189.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.2 Beta2

I am sorry it took me a while to get around to fixing the problem. The problem was caused by an API breakage in the HttpCore 4.2 new functionality. Fixed in SVN trunk.

Oleg
                
> URLEncodedUtils.java compile error: no suitable method found for parse(...
> --------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1189
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1189
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: Future
>         Environment: Windows 7, Oracle Java 7u3 x64 and 7u4 x64
>            Reporter: Ivan Kozik
>             Fix For: 4.2 Beta2
>
>
> httpclient/trunk@1301572 builds fine, but the next commit httpclient/trunk@1302360 as well as the latest httpclient/trunk@1329811 fail to compile for me:
> C:\x\httpclient\httpclient\src\main\java\org\apache\http\client\utils\URLEncodedUtils.java:108: error: no suitable method found for parse(List<NameValuePair>,Scanner,Comparable<CAP#1>)
>                 parse(result, scanner, contentType.getCharset() != null ?
>                 ^
>     method URLEncodedUtils.parse(String,String) is not applicable
>       (actual and formal argument lists differ in length)
>     method URLEncodedUtils.parse(List<NameValuePair>,Scanner,String) is not applicable
>       (actual argument Comparable<CAP#1> cannot be converted to String by method invocation conversion)
>     method URLEncodedUtils.parse(HttpEntity) is not applicable
>       (actual and formal argument lists differ in length)
>     method URLEncodedUtils.parse(URI,String) is not applicable
>       (actual and formal argument lists differ in length)
>   where CAP#1 is a fresh type-variable:
>     CAP#1 extends Comparable<?> from capture of ? extends Comparable<?>
> $ javac -version
> javac 1.7.0_04
> Same result in Oracle Java 7u3 and 7u4.  My httpcore is the latest, httpcore/trunk@1331596.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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