You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by st...@apache.org on 2004/03/16 23:55:02 UTC
cvs commit: ws-axis/java/src/org/apache/axis/attachments DimeBodyPart.java
stevel 2004/03/16 14:55:02
Modified: java/src/org/apache/axis/attachments DimeBodyPart.java
Log:
looking at bug #1126, yup, we close streams during read if they dont seek -not what you want. We also dont throw any exceptions -interesting.
Revision Changes Path
1.24 +3 -0 ws-axis/java/src/org/apache/axis/attachments/DimeBodyPart.java
Index: DimeBodyPart.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/attachments/DimeBodyPart.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- DimeBodyPart.java 25 Feb 2004 14:02:30 -0000 1.23
+++ DimeBodyPart.java 16 Mar 2004 22:55:02 -0000 1.24
@@ -456,10 +456,13 @@
// and reset the stream pointer to the first byte
in.reset();
} else {
+ //FIXME: bug http://nagoya.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-1126
+ //if we close this then how can we read the file? eh?
in.close();
}
}
} catch (Exception e) {
+ //TODO: why are exceptions swallowed here?
log.error(Messages.getMessage("exception00"), e);
}
return dataSize;