Ivan Kozik created HTTPCLIENT-1189:
--------------------------------------
Summary: 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:
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: [email protected]
For additional commands, e-mail: [email protected]