#34 The order of exceptions is not part of the API

open
Matthew Doar
None
5
2005-02-10
2005-02-10
Matthew Doar
No

Rohit Aggarwal pointed out that JDiff currently marks
methods as changed when the order of the exceptions
declared with throws is changed, and tells you so in a
report.

The Java Language Specification doesn't mention it, but
further discussion confirmed our belief that the order
makes no difference to the behaviour of a Java
application. Maybe the bytecode is different, I don't
know.

The patch checks whether the only change in a method
is the order of the exceptions, and ignores this as a
change. It will become the default behaviour for the next
release of JDiff.

~Matt

Discussion

  • Matthew Doar
    Matthew Doar
    2005-02-10

    Diff to ignore exception order changes

     
    Attachments