I recieved this error when I trying to debug a java program with vscode:
java.lang.UnsupportedClassVersionError: test (class file version 52.65535) was comp
In launch.json file, add "vmArgs": "--enable-preview" to your debug configuration.
{ ... "vmArgs": "--enable-preview" }