Juergen Hoeller
4b44a34692
Complete treatment of RuntimeBeanReference in BeanDefinitionValueResolver
...
See gh-35101
2025-06-26 17:15:31 +02:00
Stefano Cordio
f7fef93842
Refine nullability of MethodInvoker#setArguments
...
Closes gh-35089
Signed-off-by: Stefano Cordio <stefano.cordio@gmail.com>
2025-06-26 15:04:49 +02:00
Juergen Hoeller
841d9fb73b
Add public method to get bean order on DefaultListableBeanFactory
...
Closes gh-34712
2025-06-26 14:48:07 +02:00
Juergen Hoeller
c5da405314
Consistent type-based bean lookup for RuntimeBeanReference
...
See gh-35101
2025-06-26 14:47:54 +02:00
Juergen Hoeller
06ef82e9a5
Consistent type-based bean lookup for internal resolution paths
...
Includes additional tests for List/ObjectProvider dependencies.
See gh-35101
2025-06-26 12:51:55 +02:00
Juergen Hoeller
2e9e45ee55
Restore translation of IllegalArgumentException for JPA
...
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
See gh-35111
2025-06-25 22:39:18 +02:00
Juergen Hoeller
b3dc75265d
Merge branch '6.2.x'
2025-06-25 22:36:44 +02:00
Juergen Hoeller
511739e3de
Add missing test for IllegalArgumentException
...
Backport Bot / build (push) Has been cancelled
Details
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Has been cancelled
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:ubuntu-latest name:Linux]) (push) Has been cancelled
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:ubuntu-latest name:Linux]) (push) Has been cancelled
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:23], map[id:ubuntu-latest name:Linux]) (push) Has been cancelled
Details
Deploy Docs / Dispatch docs deployment (push) Has been cancelled
Details
Build and Deploy Snapshot / Verify (push) Has been cancelled
Details
See gh-35111
2025-06-25 22:35:26 +02:00
Brian Clozel
6e6280a42c
Disallow @org.jetbrains.annotations.Nullable imports
...
This commit adds a checkstyle rule that rejects
`@org.jetbrains.annotations.Nullable` imports in the source code.
See gh-35114
2025-06-25 20:43:48 +02:00
Tran Ngoc Nhan
1a046f9cec
Fix Nullable import in ClassFileAnnotationMetadata
...
Closes gh-35114
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-06-25 20:43:09 +02:00
Brian Clozel
2fa25b50d9
Fix caching operations in CachingMetadataReaderFactory
...
gh-33616 refactored `CachingMetadataReaderFactory` and broke the
behavior as it bypassed the cache for `getMetadataReader(String
className)` operations.
This commit restores the original behavior.
Fixes gh-35112
2025-06-25 20:32:38 +02:00
Juergen Hoeller
b3a5473bc7
Merge branch '6.2.x'
...
# Conflicts:
# framework-docs/modules/ROOT/pages/data-access/orm/hibernate.adoc
# spring-orm/src/main/java/org/springframework/orm/hibernate5/package-info.java
# spring-orm/src/main/java/org/springframework/orm/jpa/vendor/HibernateJpaDialect.java
# spring-orm/src/main/java/org/springframework/orm/jpa/vendor/HibernateJpaVendorAdapter.java
2025-06-25 19:08:30 +02:00
Juergen Hoeller
61474cc34c
Upgrade to Checkstyle 10.26
2025-06-25 19:00:45 +02:00
Juergen Hoeller
0bee65482f
Document actual status of orm.hibernate5 and Hibernate JPA support
...
See gh-35111
2025-06-25 18:59:06 +02:00
Juergen Hoeller
543314fcbb
Polishing
2025-06-25 18:07:24 +02:00
Juergen Hoeller
d47f1a1749
Migrate orm.hibernate5 to orm.jpa.hibernate package for Hibernate ORM 7.0
...
Closes gh-35111
2025-06-25 18:07:15 +02:00
Sam Brannen
f3f05da39b
Refer to Spring Retry project in Javadoc
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
2025-06-25 16:38:48 +02:00
rstoyanchev
e508dea82d
Merge branch '6.2.x'
2025-06-25 12:45:04 +01:00
rstoyanchev
f84552a97e
Polishing contribution
...
Backport Bot / build (push) Waiting to run
Details
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:23], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
Closes gh-35102
2025-06-25 12:37:42 +01:00
Daniil Razorenov
8d6117e419
Support StreamingHttpOutputMessage in RestClient
...
This commit allows RestClient to handle StreamingHttpOutputMessage
properly by checking the type of the request and invoking setBody()
when appropriate. This improves interoperability with components that
expect streamed output.
A new integration test has been added to verify the functionality.
See gh-35102
Signed-off-by: Daniil Razorenov <daniltmb@gmail.com>
2025-06-25 12:36:32 +01:00
rstoyanchev
40eb9c2c81
Add docs for API version deprecation support
...
Closes gh-35049
2025-06-25 12:03:35 +01:00
rstoyanchev
482cfb0b18
Add detectSupportedVersions in spring-webmvc
...
Closes gh-35105
2025-06-25 12:03:35 +01:00
rstoyanchev
3cb8a833e4
Polishing API versioning ref docs
2025-06-25 12:03:35 +01:00
rstoyanchev
785aab8ad5
Rename ApiDeprecationHandler to insert "Version"
...
The name is a bit long, but it is necessary to indicate it's a handler
for a deprecation version, and the decision is based on the version,
not an individual endpoint.
See gh-35049
2025-06-25 12:03:35 +01:00
Sam Brannen
7606a929c9
Fail build for JUnit discovery issues
...
JUnit 5.13 introduced support for Discovery Issues which typically
indicate configuration errors in tests that may result in unexpected
behavior.
Furthermore, discovery issues that are currently reported at INFO level
may later be reported at WARNING or ERROR level -- for example, in
JUnit 6.
In order to ensure that our test suite does not suffer from such
potential errors, this commit sets the
junit.platform.discovery.issue.severity.critical JVM system property to
INFO (instead of leaving it with the default ERROR configuration).
Doing so aligns with our build configuration which fails the build for
selected warnings in Java source code and Javadoc.
If we later determine that INFO causes unnecessary issues for us, we
can switch to WARNING.
This commit also removes two "intentionally invalid" test cases from
AutowiredConfigurationErrorsIntegrationTests, since those test cases
are now reported as invalid as of JUnit 5.13.
Closes gh-35107
2025-06-25 11:25:29 +02:00
Sam Brannen
ad2b7f4d01
Merge branch '6.2.x'
2025-06-25 10:23:28 +02:00
Sam Brannen
2477544a8f
Polishing
2025-06-25 10:22:47 +02:00
Tran Ngoc Nhan
abbd4ebcf6
Link to @ContextConfiguration Javadoc from reference manual
...
Closes gh-35088
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-06-25 10:16:24 +02:00
Juergen Hoeller
e828bbbb0a
Invert order of suppressed exceptions (for common exception rendering)
...
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
See gh-35057
2025-06-24 22:22:45 +02:00
Juergen Hoeller
90c875144a
Merge branch '6.2.x'
...
# Conflicts:
# spring-context/src/main/java/org/springframework/context/aot/BeanFactoryInitializationAotContributions.java
# spring-context/src/test/java/org/springframework/context/aot/ApplicationContextAotGeneratorTests.java
# spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateQueryException.java
2025-06-24 22:01:58 +02:00
Juergen Hoeller
b6aa6899a8
Polishing
Backport Bot / build (push) Waiting to run
Details
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:23], map[id:ubuntu-latest name:Linux]) (push) Waiting to run
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
2025-06-24 21:58:39 +02:00
Juergen Hoeller
4190209ead
Add missing AOT support for method overrides (including @Lookup)
...
Closes gh-34642
2025-06-24 21:58:31 +02:00
Juergen Hoeller
04f3975e0f
Support for qualified EntityManager/EntityManagerFactory injection (JPA 3.2)
...
Closes gh-33414
2025-06-24 18:51:18 +02:00
Juergen Hoeller
b0eacd22e0
Support for exposing additional object types in SmartFactoryBean
...
Closes gh-35101
2025-06-24 18:51:04 +02:00
Sam Brannen
3bf9b0de72
Merge branch '6.2.x'
2025-06-24 16:14:19 +02:00
Sam Brannen
cdf4c61d08
Upgrade to JUnit 5.13.2
...
Closes gh-35103
2025-06-24 16:12:39 +02:00
Sébastien Deleuze
839d3a7d44
Refine nullability of PropertyResolver.getProperty(key: String)
...
Closes gh-35104
2025-06-24 16:06:32 +02:00
Sébastien Deleuze
294406dae9
Remove `@Suppress("EXTENSION_SHADOWED_BY_MEMBER")`
...
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
Fixed in Kotlin 2.2.0 and IntelliJ IDEA IDEA 2024.2 EAP, see
https://youtrack.jetbrains.com/issue/KT-75169 related issue.
See gh-34453
2025-06-24 11:40:23 +02:00
rstoyanchev
3dfb6a7c0b
Fix failing test
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
2025-06-23 18:20:59 +01:00
rstoyanchev
ffdf941219
Resolve API version in RequestMappingHandlerMapping
...
API version resolution and parsing is already applied as long as
an ApiVersionStrategy is configured and irrespective of whether
a given RequestMapping has a version or not.
RequestMappingHandlerMapping also needs to be aware of the API version
in order to apply deprecated version handling. So it is better to
resolve, parse, and validate the version in the beginning of
handler mapping rather than in the first call to any
VersionRequestCondition.
Closes gh-35049
2025-06-23 18:03:56 +01:00
rstoyanchev
492e51f3ba
Add handling of deprecated API versions
...
See gh-35049
2025-06-23 18:03:56 +01:00
rstoyanchev
0eec1dc636
Consistently validate API version
...
Closes gh-35082
2025-06-23 18:03:56 +01:00
rstoyanchev
a0f9872746
Refactor construction of VersionRequestCondition
...
The single constructor now supports all combinations of having a version
attribute set or not, and ApiVersionStrategy, configured or not.
In effective, ensure the configured ApiVersionStrategy is passed even
when the RequestMapping version attribute is not set.
See gh-35082
2025-06-23 18:03:56 +01:00
rstoyanchev
5d34f9c87e
Support API versioning via MediaType parameter
...
Closes gh-35050
2025-06-23 18:03:55 +01:00
Sébastien Deleuze
ba9bef6bbf
Upgrade to Kotlin 2.2.0
...
Kotlin 2.2 is the new baseline for Spring Framework 7.0.
-Xannotation-default-target=param-property is specified to avoid
warnings when compiling tests or documentation snippets. It is
expected to become the default behavior in an upcoming version
of Kotlin, see https://youtrack.jetbrains.com/issue/KT-73255 for
more details.
Closes gh-34453
2025-06-23 18:11:06 +02:00
Sébastien Deleuze
fee873d8d2
Update JUnit javadoc link
...
Otherwise the build is broken by a redirect.
2025-06-23 17:33:17 +02:00
Juergen Hoeller
f36fec1651
Upgrade to Hibernate ORM 7.0.2 and Hibernate Validator 9.0.1
...
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
Includes missing upgrade for Jetty EE11 support 12.1.0.beta1
See gh-33750
See gh-35084
2025-06-23 11:15:33 +02:00
Sam Brannen
12146c4a1b
Clean up warning in Gradle build
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Has been cancelled
Details
Deploy Docs / Dispatch docs deployment (push) Has been cancelled
Details
Build and Deploy Snapshot / Verify (push) Has been cancelled
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:ubuntu-latest name:Linux]) (push) Has been cancelled
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:21], map[id:ubuntu-latest name:Linux]) (push) Has been cancelled
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:23], map[id:ubuntu-latest name:Linux]) (push) Has been cancelled
Details
Update Antora UI Spring / Update on Supported Branches (6.1.x) (push) Has been cancelled
Details
Update Antora UI Spring / Update on docs-build (push) Has been cancelled
Details
2025-06-20 16:43:36 +02:00
Sam Brannen
7ffd4e7cf8
Sync test fixture MockServerHttpRequest implementation with original
2025-06-20 16:33:28 +02:00
Brian Clozel
8448dc90a4
Upgrade to Jetty 12.1.0.beta1
...
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
Deploy Docs / Dispatch docs deployment (push) Waiting to run
Details
Closes gh-35084
2025-06-20 09:45:53 +02:00