-
Notifications
You must be signed in to change notification settings - Fork 40.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the same classpath ordering for an exploded war and an archive #19875
Comments
Yes, I have the same problem with springboot-2.3. x. when I rewrite class with the same name and package, I get new class when I test in eclipse. But when it packaged and run , spring boot loads the class in dependence jar and ignores new class, even though it is in WEB-INF/classes folder. I think it should be compatible with the order of tomcat's classloader, because most of the old projects were originally running in tomcat or orther java container, otherwise upgrading to spring boot will bring bugs that are difficult to test |
@stategen How are you running your application? This issue is only relevant if you are unzipping a war file and then running it with something like |
The Paketo Spring Boot buildpack expects a classpath index file in a jar or war when building a native image in order to get a predictable classpath at native image build time. The absence of a classpath index in a war file currently causes an error in the buildpack. It would be good for the buildpack to be able to treat jar and war files consistently, so this enhancement would be beneficial. |
Given the above, this sounds like a good thing to address in 2.7. |
This is a follow on from #9128 to consider whether or not we want the same functionality for war files.
The text was updated successfully, but these errors were encountered: