[jboss-dev] MC 2.2.x update

Ales Justin ales.justin at gmail.com
Wed Jan 13 05:38:08 EST 2010


But I don't see any explanation on how this changes should fit versioning?
e.g. what is "allowed" for major/minor/micro

> On Tue, 2010-01-12 at 21:34 +0100, Ales Justin wrote:
>> Is there some formal docs on how to follow versioning wrt spi/api  
>> changes?
> 
> Binary compatiblity is in the jls
> http://java.sun.com/docs/books/jls/second_edition/html/binaryComp.doc.html
> You broke rule 13.4.6
> 
> But there is more to it than that.
> 
> e.g. 
> Adding a method to an interface doesn't break existing classes
> that implement it, providing you don't invoke the new method on that
> class. 
> 
> But it does stop you recompiling the class without
> implementing the method - which is a source incompatibility.
> 
> That's why it is better to add a new method using a mixin interface
> and test whether the class implements it before invoking it.
> 
> There's no section on source compatibility in the jls. :-)
> 



More information about the jboss-development mailing list