Java - binary compatibility of abstract class & subclasses
Posted
by thSoft
on Stack Overflow
See other posts from Stack Overflow
or by thSoft
Published on 2010-05-14T22:07:53Z
Indexed on
2010/05/14
22:14 UTC
Read the original article
Hit count: 334
java
|binary-compatibility
In Java, I define an abstract class with both concrete and abstract methods in it, and it has to be subclassed independently by third-party developers. Just to be sure: are there any changes I could make to the abstract class that are source compatible with their classes but not binary compatible? In other words: after they have compiled their subclasses, could I change the abstract class - apart from e.g. adding an abstract method to it or removing a protected method from it that is called by subclasses, which are of course source incompatible - in a way that could force them to recompile their subclasses?
© Stack Overflow or respective owner