spring-framework
spring-framework copied to clipboard
Spring Framework
**Affects:** 2.4.2 (and likely several previous releases) **Steps to reproduce:** 1. create a Spring Boot App with Spring Initializr 2. `@EnableScheduling` at application class 3. create `@Scheduled` method with `Thread.sleep(60000)`...
While working on #29138, I found that a `@ImportRuntimeHints(EntityManagerRuntimeHints.class)` annotation on `AbstractEntityManagerFactoryBean` was not taken in account in the `data-jpa` smoke test sample. So I tried adding it to `LocalEntityManagerFactoryBean`...
As a follow-up of #29138, let see if we can infer the `EntityManagerFactoryInfo` and `EntityManagerProxy` proxies created via `AbstractEntityManagerFactoryBean` infrastructure like in #29097 instead of creating related hints. See related...
Fixes the nullability annotations in `SimpleMailMessage` so the `set*(...)` methods have their parameters marked as `@Nullable`. These method parameters had no annotations and when `SimpleMailMessage` is used from Kotlin with...
This PR introduces `TestSocketUtils` as a replacement for the deprecated `SocketUtils`. It was borrowed from https://github.com/spring-projects/spring-framework/blob/main/spring-core/src/testFixtures/java/org/springframework/core/testfixture/net/TestSocketUtils.java. Fixes #28210
This is a simple unit test which passes with the `5.3.x` but fails with the current `6.0` milestones: ```java @Test void namedParamMapReference() { String insert = "insert into foos (id)...
`SpringFactoriesLoader` has been added in Spring Framework 3.2 (see 988f376) as a simple and internal factory loading mechanism. At the time, the 3.x generation had a Java 1.5 baseline and...
Related to #11041. I'm trying to validate `@PathVariable` and `@RequestBody` in one method. `MethodValidationPostProcessor` is registered. Simplified Controller looks like this: ```java @RestController @Validated public class MyController { @RequestMapping(value =...
This was discovered while executing `DirtiesContextTransactionalTestNGSpringContextTests` from `spring-test` in AOT mode. The config file `DirtiesContextTransactionalTestNGSpringContextTests-context.xml` contains the following. ```xml ``` AOT processing generates the following source code in the `javax.sql`...
The SpEL indexer doesn't provide support for Jackson's `ArrayNode`, and it seems to be non-extensible; whereas, a Jackson `ObjectNode` can be operated on within a SpEL expression via `PropertyAccessor` support.