Details
-
Type: Task
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.2
-
Component/s: None
-
Labels:None
Description
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.
Issue Links
- is depended upon by
-
XSTR-317 XStream 1.2 release coordination.
While you're right with the missing declaration in the Javadocs, any RuntimeException thrown by XStream is derived from BaseException.