Details
- 
        Type: Improvement Improvement
- 
        Status: Closed Closed
- 
            Priority: Major Major
- 
            Resolution: Fixed
- 
            Affects Version/s: None
- 
            Fix Version/s: 1.2
- 
            Component/s: None
- 
            Labels:None
Description
It would be nice to have the xstream methods decorated with throws declarations.
In particular, XStream.fromXML() throws a StreamException if the XML is invalid.
You can only find out about this exception if you test with invalid data.
If there had been a throws statement, Eclipse would have warned me to add a try-catch clause (and I wouldn't have had to accept this bug report for my code).
And the exception would appear in the XStream Javadoc.



The Javadoc now contains a @thows statement. For Eclipse this is enough to give you a hint. The discussion between unsing checked or unchecked exceptions is long, we chose to use unckeched ones.