Should pedestal still work with java8?
trying to release new version of reitit, but the pedestal-module fails to build with java8 with error:
Execution error (UnsupportedClassVersionError) at java.lang.ClassLoader/defineClass1 (ClassLoader.java:-2).
jakarta/servlet/Servlet has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0updated dependencies, now uses [io.pedestal/pedestal.service "0.7.0"]
I fixed this by adding dependency to [jakarta.servlet/jakarta.servlet-api "5.0.0"]
I think jdk 11 has been the min for a while https://github.com/pedestal/pedestal/blob/master/CHANGELOG.md#060---12-jun-2023
reitit doesnβt use servlet to anything, so I assume this is a pedestal thing π€
And jetty 11 has a min of jdk 11
thanks, that explains.
java8 is ancient, but will not change reitit minimum for this, so will hack the test to work.
I've started rolling some changes into master (which is now Pedestal 0.8); there's a 0.7-maint branch for further 0.7.x work.