When generating dynamic classes with CGLIB or compiling SpEL expressions, we currently generate byte code with Java 8 class versions.
For Spring Framework 7, we should generate byte code with Java 17 class versions to align with the Java 17 baseline introduce in Spring Framework 6.0.