3 ms·
Java supports dynamic libraries. As long as the API hasn't changed, your class may be initialized using a different version of its superclasses than it had when
by tsimionescu 4y ago
Java supports dynamic libraries. As long as the API hasn't changed, your class may be initialized using a different version of its superclasses than it had when it was compiled, so checking statically is not that valuable. And this is not just a theoretical possibility, it's quite common for Java libraries to be distributed in bytecode format, and to be run on various versions of the JVM - so at least any library which subclasses any standard library class is going to often run with various versions of its superclass.