History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XSTR-326
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Assignee: Unassigned
Reporter: Kenny MacLeod
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XStream

Add exception declarations to methods on Xstream class

Created: 26/Jun/06 07:20 AM   Updated: 07/Aug/06 09:03 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2

Issue Links:
dependent
 


 Description  « Hide
com.thoughtworks.xstream.Xstream does not declare any exceptions on its method declarations, either as throws clauses or as javadoc, even for methods such as fromXML(Reader), which should have a very clearly defined exception behaviour. As it stands, we're reduced to try/catch RuntimeException, which isn't very precise.

The javadoc should declare the various runtime exceptions that may be thrown.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Joerg Schaible - 06/Jul/06 06:48 AM
While you're right with the missing declaration in the Javadocs, any RuntimeException thrown by XStream is derived from BaseException.

Joerg Schaible - 28/Jul/06 04:12 PM
Added @throws in Javadoc to methods of XStream.

Joerg Schaible - 07/Aug/06 09:03 PM
Done.