XStream
  1. XStream
  2. XSTR-214

Add throws statement to fromXML()

    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.

        People

        • Assignee:
          Unassigned
          Reporter:
          Heiko Selber
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: