It looks like you have a couple of other setRequestBody methods in WebdavResource.java that take a byte[], a File, and a URL. The HttpClient in Commons never had these as far as I'm aware.
-jsd
Christopher Lenz wrote:
Jeffrey Dever wrote:There are quite a few warnings and errors from the gump build. I can help address the ones caused by Commons HttpClient. We are delighted that slide has removed its httpclient fork, but realize that it makes you sensitive to our API changes of which there have been many to simplify, generalize and minimize the public interface.
Hmm, the merge of PostMethod and PutMethod seems to have changed the API. Was it for some reason impossible to deprecate setRequestBody() instead of removing it? Or just an oversight?
If possible, it'd be good if the method could be re-added and deprecated.
Is somone working on the other build issues?
The other build issues are just tons of deprecation warnings, right?
A lot of those are even caused by deprecations within Slide. I wouldn't consider fixing them critical, often enough you aren't in a situation to eliminate deprecated warnings at all.
/home/rubys/jakarta/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavResource.java:2218: cannot resolve symbol
[javac] symbol : method setRequestBody (byte[])
[javac] location: class org.apache.commons.httpclient.methods.PutMethod
[javac] method.setRequestBody(data);
[javac] ^
[javac] /home/rubys/jakarta/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavResource.java:2345: cannot resolve symbol
[javac] symbol : method setRequestBody (java.io.File)
[javac] location: class org.apache.commons.httpclient.methods.PutMethod
[javac] method.setRequestBody(file);
[javac] ^
[javac] /home/rubys/jakarta/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavResource.java:2391: cannot resolve symbol
[javac] symbol : method setRequestBody (java.net.URL)
[javac] location: class org.apache.commons.httpclient.methods.PutMethod
[javac] method.setRequestBody(url);
[javac] ^
[javac] /home/rubys/jakarta/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/HttpRequestBodyMethodBase.java:229: warning: getRequestOutputStream(boolean) in org.apache.commons.httpclient.HttpConnection has been deprecated
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
