Go to file
Sam Brannen 7139a877f4 Ensure toString() for synthesized annotations is source code compatible
Since the introduction of synthesized annotation support in Spring
Framework 4.2 (a.k.a., merged annotations), the toString()
implementation attempted to align with the formatting used by the JDK
itself. However, Class annotation attributes were formatted using
Class#getName in Spring; whereas, the JDK used Class#toString up until
JDK 9.

In addition, JDK 9 introduced new formatting for toString() for
annotations, apparently intended to align with the syntax used in the
source code declaration of the annotation. However, JDK 9+ formats enum
annotation attributes using Enum#toString instead of Enum#name, which
can lead to issues if toString() is overridden in an enum.

This commit updates the formatting used for synthesized annotations by
ensuring that toString() generates a string that is compatible with the
syntax of the originating source code, going beyond the changes made in
JDK 9 by using Enum#name instead of Enum#toString.

Closes gh-28015
2022-02-08 14:10:36 +01:00
.github
buildSrc Upgrade to JApicmp Gradle Plugin 0.3.0 2021-09-15 14:40:42 +02:00
ci Upgrade Ubuntu version in CI image 2022-02-03 08:48:52 +01:00
framework-bom
gradle Indent with tabs instead of spaces 2021-10-13 20:04:40 +02:00
integration-tests Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-aop Fix Javadoc since for AopProxyUtils.isLambda() 2022-02-05 13:59:01 +01:00
spring-aspects Stop resolving CachingConfigurer instances eagerly 2021-12-15 10:52:09 +01:00
spring-beans Allow AutowiredAnnotationBeanPostProcessor to compile on JDK 11 2022-02-08 14:06:27 +01:00
spring-context Deprecate AsyncTaskExecutor.execute(Runnable task, long startTimeout) 2022-02-04 23:21:00 +01:00
spring-context-indexer Partially revert e1200f34e7 2022-01-04 16:20:55 +01:00
spring-context-support Deprecate AsyncTaskExecutor.execute(Runnable task, long startTimeout) 2022-02-04 23:21:00 +01:00
spring-core Ensure toString() for synthesized annotations is source code compatible 2022-02-08 14:10:36 +01:00
spring-expression Find interface method even for late-bound interface declaration in subclass 2022-02-04 23:21:27 +01:00
spring-instrument
spring-jcl Polishing 2021-09-28 18:15:56 +02:00
spring-jdbc Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-jms Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-messaging Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-orm Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-oxm Use idiomatic AssertJ assertions for true, false, and null 2022-01-10 14:15:55 +01:00
spring-r2dbc Partially upgrade to H2 database 2.0.206 2022-01-07 15:50:44 +01:00
spring-test Polishing 2022-02-05 20:23:45 +01:00
spring-tx Deprecate AsyncTaskExecutor.execute(Runnable task, long startTimeout) 2022-02-04 23:21:00 +01:00
spring-web Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-webflux Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-webmvc Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-websocket Use modern language features in tests 2022-02-03 14:50:10 +01:00
src Ensure Spring AOP generates JDK dynamic proxies for lambdas 2022-02-04 19:59:35 +01:00
.editorconfig
.gitattributes
.gitignore
.mailmap
CODE_OF_CONDUCT.adoc
CONTRIBUTING.md Avoid creating unnessary wrapper for empty map 2021-06-11 16:36:04 +01:00
LICENSE.txt
README.md
SECURITY.md Update "Reporting a Vulnerability" link 2021-10-20 14:48:51 +02:00
build.gradle Upgrade to Checkstyle 9.3, HtmlUnit 2.58, Apache HttpClient 5.1.3 2022-02-04 23:51:23 +01:00
gradle.properties Next development version (v5.3.16-SNAPSHOT) 2022-01-13 11:22:39 +00:00
gradlew Upgrade to Gradle 7.2 2021-09-13 09:37:35 +02:00
gradlew.bat
import-into-eclipse.md About notes about AJDT and Kotlin not supported in Eclipse 4.21 2021-09-21 14:23:02 +02:00
import-into-idea.md
settings.gradle Download gradle-enterprise-conventions plugin from "release" repo 2022-01-17 18:03:27 +01:00

README.md

Spring Framework Build Status Revved up by Gradle Enterprise

This is the home of the Spring Framework: the foundation for all Spring projects. Collectively the Spring Framework and the family of Spring projects are often referred to simply as "Spring".

Spring provides everything required beyond the Java programming language for creating enterprise applications for a wide range of scenarios and architectures. Please read the Overview section as reference for a more complete introduction.

Code of Conduct

This project is governed by the Spring Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.

Access to Binaries

For access to artifacts or a distribution zip, see the Spring Framework Artifacts wiki page.

Documentation

The Spring Framework maintains reference documentation (published and source), Github wiki pages, and an API reference. There are also guides and tutorials across Spring projects.

Micro-Benchmarks

See the Micro-Benchmarks Wiki page.

Build from Source

See the Build from Source Wiki page and the CONTRIBUTING.md file.

Continuous Integration Builds

Information regarding CI builds can be found in the Spring Framework Concourse pipeline documentation.

Stay in Touch

Follow @SpringCentral, @SpringFramework, and its team members on Twitter. In-depth articles can be found at The Spring Blog, and releases are announced via our news feed.

License

The Spring Framework is released under version 2.0 of the Apache License.