hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: Building source
Date Sat, 20 Dec 2003 15:11:26 GMT
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:  
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:  
> commons-httpclient-dev-help@jakarta.apache.org
>


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


Mime
View raw message