I was thinking about just compiling it with 1.7, no switches, and then running it on an older JVM.
I would expect that the
string switch statement should work, as its just a bit of syntactic sugar and purely a compile time thing.
Obviously, if you use cool new features, like try-with-resources, they may need runtime support and that can't possibly work.