2 ms·
> In general you need to recompile the subclass if the superclass changes. If you are using "in general" in the sense of "in the general case", you are right.
by tsimionescu 4y ago
> In general you need to recompile the subclass if the superclass changes.
If you are using "in general" in the sense of "in the general case", you are right. But if you are using it as "typically", then that's not true - it's very common for example for a library to be compiled with Java X while subclassing at least a few standard library classes, and then to keep using the same compiled classes with Java X+1, X+2, and to expect them to just work.
The Java Standard Library actually takes quite a bit of care to make sure modifications to its (non-final) classes are backwards compatible even for subclasses.