spring-framework
spring-framework copied to clipboard
Spring Framework
When calculating the ``ContentLength`` and writing data to the `OutputStream` in `StringHttpMessageConverter`, calling `str.getBytes(charset)` repeatedly will result in unnecessary array objects occupying memory https://github.com/spring-projects/spring-framework/blob/09917fad7bca9b3997522f0a75d6319203f2127f/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java#L103-L106 https://github.com/spring-projects/spring-framework/blob/09917fad7bca9b3997522f0a75d6319203f2127f/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java#L122-L129
There are multiple reasons why we may want to introduce support for polyglot languages in Spring Framework 7.1: - Nashorn has been removed from the JDK since Java 15, and...
## Background Context Parameters were introduced in Kotlin 2.1.20 and are currently in Beta status in Kotlin 2.2.0 under the flag `-Xcontext-parameters` ([announcement](https://blog.jetbrains.com/kotlin/2025/04/update-on-context-parameters/)) ## Issue Spring's `KotlinReflectionParameterNameDiscoverer` cannot detect Context...
As follow-up of #35430 and related to #35446, the [view technologies section](https://docs.spring.io/spring-framework/reference/7.0-SNAPSHOT/web/webmvc-view.html) should be refined like the MVC config section was, to: - Use references to distinct source code files...
As raised by @sbrannen related to https://github.com/spring-projects/spring-framework/pull/34555#discussion_r2008776562, we don't check currently Kotlin code style. We may want to introduce such code style, document it, and use tools like https://github.com/pinterest/ktlint to...
Following up on #35622, we intend to track JPA 4.0 and its implementations - in particular Hibernate ORM 8.0 - as they become available. While we leniently adapt to JPA...
Following up on #35633, there is also a timeout attribute expected for the `jakarta.transaction.Transactional` annotation. Once the name and format is clear, we should be able to detect and apply...
Currently, the default dispatcher used for suspending controller functions is `Dispatchers.Unconfined`, which is a dangerous poor choice. I believe it was chosen due to the common misconception that `Dispatchers.Unconfined` runs...
As discussed in https://github.com/spring-projects/spring-framework/issues/35500#issuecomment-3334284774 there is a desire to create a dedicated hook point for contributing runtime hints (and runtime hints only) for a bean. Right now we use `BeanRegistrationAotProcessor`...
As Spring AOT should offer a way to run an application without a locked down `BeanFactory`, we need a way to keep some of those optimizations. A typical example is...