Juergen Hoeller
03cce13937
Merge branch '6.2.x'
2025-02-27 22:54:07 +01:00
Juergen Hoeller
3bb4795d43
Resolve variable bounds at outermost recursion level only
...
Closes gh-34504
2025-02-27 22:51:41 +01:00
Brian Clozel
68e9460e9b
Revisit compiler configuration in project build
...
This commit revisit the build configuration to enforce the following:
* A single Java toolchain is used consistently with a recent Java
version (here, Java 23) and language level
* the main source is compiled with the Java 17 "-release" target
* Multi-Release classes are compiled with their respective "-release"
target. For now, only "spring-core" ships Java 21 variants.
Closes gh-34507
2025-02-27 14:39:43 +01:00
Juergen Hoeller
fb77fcd922
Merge branch '6.2.x'
2025-02-26 10:33:19 +01:00
Juergen Hoeller
06721ba6c0
Lenient fallback when cached WeakReference returns null
...
Closes gh-34423
2025-02-26 10:24:24 +01:00
Juergen Hoeller
7c4594c014
Merge branch '6.2.x'
...
# Conflicts:
# spring-core/src/main/java/org/springframework/aot/hint/ResourceHints.java
# spring-core/src/main/java/org/springframework/aot/hint/support/FilePatternResourceHintsRegistrar.java
2025-02-23 15:29:38 +01:00
Juergen Hoeller
634d1dd20b
Consistent default ClassLoader fallback in hint classes
...
Closes gh-34470
2025-02-23 15:15:25 +01:00
Juergen Hoeller
1aea698088
Merge branch '6.2.x'
2025-02-23 14:04:31 +01:00
Juergen Hoeller
725b02a66d
Ignore entries cache if no matching root entry path found
...
Closes gh-34446
2025-02-23 14:02:57 +01:00
Sam Brannen
fe41cd6d20
Merge branch '6.2.x'
2025-02-13 16:39:21 +01:00
Sam Brannen
9e45178202
Stop referring to "Java 8" in AnnotationUtils
2025-02-13 15:59:20 +01:00
Sam Brannen
d82e70e345
Cross reference annotation search APIs in Javadoc
...
Closes gh-34421
2025-02-13 15:59:08 +01:00
Juergen Hoeller
4d6947d14f
Merge branch '6.2.x'
2025-02-12 19:20:01 +01:00
Juergen Hoeller
bbb593db48
Consistently ignore non-jar files in classpath
...
Closes gh-34417
2025-02-12 19:18:30 +01:00
rstoyanchev
e9d16da633
Remove Netty 5 support
...
Closes gh-34345
2025-02-11 12:27:33 +00:00
Juergen Hoeller
4ba14ca58c
Merge branch '6.2.x'
2025-02-10 15:55:26 +01:00
Juergen Hoeller
1ca941ba9a
Consistently resolve renamed type variables
...
Closes gh-34386
2025-02-10 15:51:39 +01:00
Sam Brannen
1a29fbda48
Restore @Nullable on AnnotatedElementUtils.getAllAnnotationAttributes(...)
...
Closes gh-34394
2025-02-10 10:52:32 +01:00
Juergen Hoeller
3fff3b8a6d
Merge branch '6.2.x'
...
# Conflicts:
# spring-beans/src/main/java/org/springframework/beans/factory/support/SimpleAutowireCandidateResolver.java
# spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java
2025-02-07 19:03:37 +01:00
Juergen Hoeller
1a573d6e3c
Lazily retrieve TypeDescriptor annotations on demand
...
Closes gh-33948
2025-02-07 18:55:24 +01:00
rstoyanchev
55a090602b
Merge branch '6.2.x'
2025-02-07 13:23:14 +00:00
rstoyanchev
ff49b0b683
Align AnnotatedMethod#equals and #hashcode
...
See gh-34375
2025-02-07 13:10:55 +00:00
Sébastien Deleuze
7695be0079
Merge branch '6.2.x'
2025-02-06 09:19:42 +01:00
Sébastien Deleuze
dba4881318
Refine the CGLIB error message with native
...
See gh-34370
2025-02-06 09:18:51 +01:00
Sébastien Deleuze
e44a3eb39a
Merge branch '6.2.x'
2025-02-05 17:47:58 +01:00
Sébastien Deleuze
16ec08aec8
Provide a more actionable CGLIB error message with native
...
Closes gh-34370
2025-02-05 17:47:25 +01:00
Juergen Hoeller
ecc7ddd96b
Merge branch '6.2.x'
2025-01-31 22:28:50 +01:00
Juergen Hoeller
2df8ea94e0
Clean root entry path to match jar entries format in cache
...
Closes gh-34348
2025-01-31 22:26:14 +01:00
Juergen Hoeller
7405e20690
Merge branch '6.2.x'
...
# Conflicts:
# spring-core/src/main/java/org/springframework/core/ResolvableType.java
2025-01-30 15:38:09 +01:00
Juergen Hoeller
ed994dcd97
Resolve bounds for type variable before emptiness check
...
Closes gh-34328
2025-01-30 15:35:14 +01:00
Juergen Hoeller
4c3b435d23
Enforce exact match for bounds of nested type variable
...
Closes gh-34300
2025-01-30 15:34:55 +01:00
Johnny Lim
042b78f609
Fix Javadoc @code tags
...
Signed-off-by: Johnny Lim <izeye@naver.com >
2025-01-30 13:33:42 +09:00
Sam Brannen
5574f45cb1
Merge branch '6.2.x'
2025-01-27 15:22:10 +01:00
Sam Brannen
34d6dd9b62
Polishing
2025-01-27 15:19:00 +01:00
Sam Brannen
35fede1382
Polish Nullness
2025-01-23 11:16:00 +01:00
Sébastien Deleuze
8a89248b16
Refine Nullness Javadoc
...
See gh-34261
2025-01-22 13:21:17 +01:00
Brian Clozel
f85752a956
Fix hints and predicates for Field reflective access
...
This commit revisits the arrangement for Field hints after changes made
in gh-34239.
Closes gh-34294
2025-01-21 20:05:12 +01:00
Juergen Hoeller
3302bc46f8
Merge branch '6.2.x'
2025-01-21 19:16:08 +01:00
Juergen Hoeller
90423a98b0
Enforce match for resolved part of unresolvable target type
...
Closes gh-34298
2025-01-21 19:15:20 +01:00
Brian Clozel
4763877259
Merge branch '6.2.x'
2025-01-21 17:27:54 +01:00
Brian Clozel
e9dc6be51c
Fix Javadoc for field reflection hints
...
Closes gh-34297
2025-01-21 17:25:15 +01:00
Sam Brannen
d888432dca
Merge branch '6.2.x'
2025-01-21 17:23:28 +01:00
Sam Brannen
6863b904b5
Polish contribution
...
See gh-34295
2025-01-21 17:22:49 +01:00
Mengqi Xu
016a4c4260
Improve Javadoc for SpringProperties.getFlag()
...
getFlag() returns true when the property is equal, ignoring case, to the
string "true", not just "true"; "TrUe" also means true.
Closes gh-34295
Signed-off-by: Mengqi Xu <2663479778@qq.com >
2025-01-21 17:19:17 +01:00
Sébastien Deleuze
1115be581a
Add primitive type support to Nullness
...
See gh-34261
2025-01-21 16:32:52 +01:00
Sébastien Deleuze
b3e888279e
Introduce Nullness API
...
This commit introduces a Nullness enum with related utility methods
in order to detect if a type usage, a field, a method return type or a
parameter is unspecified, nullable or not null.
JSpecify annotations are fully supported, as well as Kotlin null safety
and `@Nullable` annotations regardless of their package (from Spring,
JSR-305 or Jakarta set of annotations for example).
Closes gh-34261
2025-01-21 14:59:32 +01:00
Juergen Hoeller
001ccca5e6
Merge branch '6.2.x'
2025-01-20 18:18:48 +01:00
Juergen Hoeller
ee60eb7207
Fall back to HTTP GET in case of 405 from HTTP HEAD
...
Closes gh-34217
2025-01-20 18:17:49 +01:00
Sam Brannen
7fedb9c1d4
Remove binary array name handling in ClassUtils.forName()
...
In ClassUtils.forName(), we originally delegated to
ClassLoader.loadClass(), which does not support loading classes from
binary names for arrays (such as "[[I" for "int[][]" or
"[Ljava.lang.String;" for "String[]"); whereas, Class.forName() does
support binary names for arrays.
However, in Spring Framework 5.1.1 we switched from using
ClassLoader.loadClass() to Class.forName() in ClassUtils.forName() (see
gh-21867), which makes our custom handling of binary names for arrays
in ClassUtils.forName() obsolete.
In light of that, this commit removes our custom binary array name
handling support from ClassUtils.forName().
Closes gh-34291
2025-01-20 16:16:05 +01:00
Stéphane Nicoll
eda7af764b
Merge branch '6.2.x'
2025-01-20 15:13:42 +01:00