Yup, this.hashCode() instead of hashCode() got rid of the warnings. 

For line 367, the version I have (alpha3), both the try block and the catch
block are empty. Maybe you are still adding more stuff ?

Thanks,
-June

-----Original Message-----
From: Russell Butek [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 5:45 AM
To: [EMAIL PROTECTED]
Subject: RE: javax.servlet package


Ma, June wrote:
> While compilingaxis/attachments/ManagedMemoryDataSource.java, I got the
following warning. I am wondering could  that be fixed in the Beta1 also.
>
>
>     367.                }catch(Exception  e2){
>                               <---------->
> *** Caution: This try block cannot throw a "checked  exception" (JLS
section 14.7
> ) that can be caught here. You may have intended  to catch a
RuntimeException ins
> tead of an  Exception.
>

I think your compiler is faulty.  This try block contains a call to
stream.close().  stream is of type InStream which is defined further down
in the file.  Instream.close is defined to throw java.io.IOException, a
checked exception.  Perfectly legal.

>
>     500.              if(debugEnabled) category.debug(hashCode() + "read
(" + off +
>  ", " + len  +")");
>                                                      <-------->
> *** Caution: Ambiguous reference to member named "hashCode"  inherited
from type
> "java/lang/Object" but also declared or inherited in the  enclosing type
"com/com
> merceone/message/standards/axis/attachments/ManagedMemoryDataSource".
Explicit q
> ualification is required.
>

I'm not sure I understand the problem here.  Is it because Instream is an
embedded class within ManagedMemoryDataSource?  Try changing the call to
"this.hashCode()" and let us know if this gets rid of your warning.  If it
does, I'll fix it.

>
>     568.              if(debugEnabled) category.debug( hashCode() +"read
" +  bwrit
> ten);
>                                                       <-------->
> *** Caution: Ambiguous reference to member named "hashCode"  inherited
from type
> "java/lang/Object" but also declared or inherited in the  enclosing type
"com/com
> merceone/message/standards/axis/attachments/ManagedMemoryDataSource".
Explicit q
> ualification is required.
>
>

Reply via email to