You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We run our Spring MVC application in a Docker container based openjdk:21-slim. The Java runtime self-reports its version as 21, rather than e.g. 21.0, causing the BugsnagImportSelector to not recognise the Java version correctly.
Steps to reproduce
Follow the basic Spring getting started guide in a Java 21 environment where java.version is set to a major version string only (e.g. 21 rather than 21.0)
The applications fails to start with java.lang.ClassNotFoundException: javax.servlet.ServletRequestListener
Spring framework version (if any): Spring Boot 3.2.1
Maven version (if any): -
Gradle version (if any): -
Additional Details
It appears that BugsnagImportSelector#isJava17Compatible is unable to cope with major-only version strings, and instead falls back to the default version in such scenarios.
The text was updated successfully, but these errors were encountered:
Thank you for reaching out to us with this bug report. We now have an item on our backlog aimed at investigating this issue further. Once we have more information to share we will be sure to update you here via this ticket thread.
Describe the bug
We run our Spring MVC application in a Docker container based
openjdk:21-slim
. The Java runtime self-reports its version as21
, rather than e.g.21.0
, causing theBugsnagImportSelector
to not recognise the Java version correctly.Steps to reproduce
java.version
is set to a major version string only (e.g.21
rather than21.0
)java.lang.ClassNotFoundException: javax.servlet.ServletRequestListener
Environment
Additional Details
It appears that
BugsnagImportSelector#isJava17Compatible
is unable to cope with major-only version strings, and instead falls back to the default version in such scenarios.The text was updated successfully, but these errors were encountered: