5.0.0 cannot be run with Java 17 (DefaultSecurityConfig.groovy - Unsupported class file major version 61)
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
### Expected Behavior
We are able to run Grails 5 apps with JDK 17 (`tomcat:9.0.60-jdk17-corretto`) but since using grails-spring-security-core 5.0.0 Java throws an error:
```
BUG! exception in phase 'semantic analysis' in source unit 'jar:file:/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/spring-security-core-5.0.0-plain.jar!/DefaultSecurityConfig.groovy' Unsupported class file major version 61
```
Grails 5.1.4 runs with JDK 17 but the spring security plugin might have been build with an old JDK (or DefaultSecurityConfig was never touched).
### Actual Behaviour
_No response_
### Steps To Reproduce
_No response_
### Environment Information
Docker-Image: tomcat:9.0.60-jdk17-corretto
### Example Application
_No response_
### Version
5.1.4
Contributor guide
Research direction
Start by reproducing the failure with tomcat:9.0.60-jdk17-corretto and Grails 5.1.4, then inspect DefaultSecurityConfig.groovy inside spring-security-core-5.0.0-plain.jar. Determine whether the plugin is compatible with JDK 17; done means the application starts without the unsupported class file major version 61 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, java, spring
- Domain
- backend, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100