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. > >