Bytecode manipulation isn't voodoo, but does require updates with language versions to handle new bytecodes and language features. For example, to support Java 8 you'll have to handle invokedynamic because it's used for lambdas.
There are other small incompatibilities between Java versions. For example, hashmap iteration order is unspecified but is consistent for a major version, so people end up accidentally depending on it. JUnit is a good example -- the order in which unit tests are executed used to be based on whatever order the JVM reflectively returned the methods for the class, which was unspecified. People accidentally depended on them running in a certain order, and when Java 7 was released everything broke. JUnit then defined a specific iteration order and used that instead of depending on the VM. (see https://github.com/junit-team/junit4/wi ... tion-order)
At my company we have patched our JDK to randomize hashmap iteration order to avoid this problem, helping us migrate to new versions of Java. Python and Go do this as well.
There are other small incompatibilities between Java versions. For example, hashmap iteration order is unspecified but is consistent for a major version, so people end up accidentally depending on it. JUnit is a good example -- the order in which unit tests are executed used to be based on whatever order the JVM reflectively returned the methods for the class, which was unspecified. People accidentally depended on them running in a certain order, and when Java 7 was released everything broke. JUnit then defined a specific iteration order and used that instead of depending on the VM. (see https://github.com/junit-team/junit4/wi ... tion-order)
At my company we have patched our JDK to randomize hashmap iteration order to avoid this problem, helping us migrate to new versions of Java. Python and Go do this as well.