You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Ivan Kozik (JIRA)" <ji...@apache.org> on 2012/04/30 18:03:48 UTC

[jira] [Updated] (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 ]

Ivan Kozik updated HTTPCLIENT-1189:
-----------------------------------

    Description: 
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:

{code}
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<?>
{code}

{code}
$ javac -version
javac 1.7.0_04
{code}

Same result in Oracle Java 7u3 and 7u4.  My httpcore is the latest, httpcore/trunk@1331596.

  was:
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.

    
> 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
>
> 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:
> {code}
> 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<?>
> {code}
> {code}
> $ javac -version
> javac 1.7.0_04
> {code}
> 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