Hello,

FileItem.write throws a raw java.lang.Exception:

http://commons.apache.org/fileupload/apidocs/org/apache/commons/fileupload/FileItem.html#write(java.io.File)

which I believe is bad practice - clients must catch any RuntimeException and 
also the API provides no info about which type of non-runtime exceptions may be 
generated. It certainly feels bad coding against it.

I know fixing this would be an API change, but it would be backwards compatible.

Or is there a good reason for throwing the raw exception?

Regards
Oliver Kohll



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to