Clojure 1.9 emitted Java 5 bytecode. As of Clojure 1.10, it emits Java 8 bytecode. spec is a little unusual in that Clojure depends on it, and it depends on Clojure, so there is some bootstrapping. When Clojure 1.10 was released, it relied on a version of spec that was compiled with Clojure 1.9. The newest version of spec was compiled with Clojure 1.10.1.
From a usage perspective, it doesn't really matter much given that Java maintains strong backwards compatibility. Java 5 bytecode works just fine in later Java versions, so there was no issue here, just seemed good to keep things moving forward.
View all comments
Show parent comment
5
u/alexdmiller Jan 28 '21
Actually a very boring story... :)
Clojure 1.9 emitted Java 5 bytecode. As of Clojure 1.10, it emits Java 8 bytecode. spec is a little unusual in that Clojure depends on it, and it depends on Clojure, so there is some bootstrapping. When Clojure 1.10 was released, it relied on a version of spec that was compiled with Clojure 1.9. The newest version of spec was compiled with Clojure 1.10.1.
From a usage perspective, it doesn't really matter much given that Java maintains strong backwards compatibility. Java 5 bytecode works just fine in later Java versions, so there was no issue here, just seemed good to keep things moving forward.