Not sure what to tell you about these errors. The source code in HttpClient is always in a compiling state. My guess is that your compiler is perhaps a little non-standard. URIUtil.Coder extends URI and as such has access to protected methods on URI.

Mike

On Dec 19, 2003, at 8:11 PM, protean wrote:

I'm afraid i'm a bit of a newb here, but i was surprised to find i could not
build the source i downloaded in the last fortnight (not quite sure how to
identify the version). Can anyone tell me how to get source that will
definitely build? This is what happened minus many of the deprecation
warnings (the build failed):


Thanks in advance

C Johnson



[javac] Compiling 95 source files to
/shared/commons-httpclient-2.0-rc2/target/classes
[javac]
[javac] Found 2 semantic errors compiling
"/shared/commons-httpclient-2.0-rc2/src/java/org/apache/commons/ httpclient/util/URIUtil.java":
[javac]
[javac] 710. return URI.encode(unescapedComponent,
allowed, charset);
[javac]
<---------------------------------------------->
[javac] *** Error: Method "char[] encode(java.lang.String original,
java.util.BitSet allowed, java.lang.String charset);" in class
"org/apache/commons/httpclient/URI" has protected or default access.
Therefore, it is not accessible in class
"org/apache/commons/httpclient/util/URIUtil$Coder" which is in a different
package.
[javac]
[javac]
[javac] 726. return URI.decode(escapedComponent, charset);
[javac] <----------------------------------->
[javac] *** Error: Method "java.lang.String decode(char[] component,
java.lang.String charset);" in class "org/apache/commons/httpclient/URI" has
protected or default access. Therefore, it is not accessible in class
"org/apache/commons/httpclient/util/URIUtil$Coder" which is in a different
package.
[javac]
[javac] Issued 1 semantic warning compiling
"/shared/commons-httpclient-2.0-rc2/src/java/org/apache/commons/ httpclient/NTLM.java":
[javac]
[javac] 76. import org.apache.commons.httpclient.util.Base64;
[javac] <--------------------------------------->
[javac] *** Warning: The type "org/apache/commons/httpclient/util/Base64"
has been deprecated.
[javac]
[javac] Issued 3 semantic warnings compiling
"/shared/commons-httpclient-2.0-rc2/src/java/org/apache/commons/ httpclient/auth/NTLMScheme.java":


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to