Commit Graph

18472 Commits

Author SHA1 Message Date
Sam Brannen
8de2a9b74d Test status quo for error handling in ASM-based annotation processing
This commit introduces tests for the status quo as of Spring Framework
5.1.x (before the introduction of the MergedAnnotations API in 5.2).

Specifically, this commit introduces tests for the following use cases.

- declared annotation type cannot be loaded
- class referenced via annotation attribute cannot be loaded
- nested annotation referenced via annotation attribute cannot be loaded
- enum referenced via annotation attribute cannot be loaded

The first two use cases above are also tested with merged annotation
support for a custom composed annotation.

Note: this commit does not include tests for annotation attribute
arrays of classes, annotations, or enums.

See gh-27772
2021-12-14 14:32:09 +01:00
Spring Buildmaster
dafd904b14 Next Development Version 2020-12-09 07:22:41 +00:00
Rossen Stoyanchev
d2f2918bf0 Backport fixes for discarding data buffers
Closes gh-26232
2020-12-08 22:16:54 +00:00
Juergen Hoeller
900c45eab5 Remove duplicate "property" in PropertyCacheKey.toString()
Closes gh-26237
2020-12-08 15:05:27 +01:00
Juergen Hoeller
cbe8d73342 Upgrade to Reactor Californium-SR23
Closes gh-26233
2020-12-07 22:35:03 +01:00
Juergen Hoeller
07bb95b57f Polishing (aligned with 5.2.x) 2020-12-02 17:44:09 +01:00
Juergen Hoeller
6e354b1209 Upgrade to Checkstyle 8.38 2020-12-02 17:42:38 +01:00
Rossen Stoyanchev
2482a83d4f ContentCachingResponseWrapper skips contentLength for chunked responses
Closes gh-26182
2020-12-01 18:22:50 +00:00
Сергей Цыпанов
a88093c699 Remove unused package-private class o.s.w.u.p.SubSequence
(cherry picked from commit 42216b77df)
2020-11-26 15:43:20 +01:00
Juergen Hoeller
804ca26a26 Remove misleading default note on ISO.DATE_TIME
Closes gh-26134

(cherry picked from commit 86f9716fef)
2020-11-26 15:43:13 +01:00
Juergen Hoeller
494b6abd27 Upgrade to Hibernate ORM 5.3.20 2020-11-19 16:08:42 +01:00
Rossen Stoyanchev
3e4ba75716 Allow "*" for Access-Control-Expose-Headers
Closes gh-26113
2020-11-19 10:21:10 +00:00
Juergen Hoeller
bd4ebd62eb Polishing 2020-11-17 16:24:11 +01:00
Juergen Hoeller
29bd9b7fdd Encode hash symbol in jar file path (for compatibility with JDK 11+)
Closes gh-26104
2020-11-17 16:23:46 +01:00
Juergen Hoeller
f59f7cca84 Upgrade to Checkstyle 8.37 2020-11-16 21:58:07 +01:00
Juergen Hoeller
3ae7f29995 Polishing 2020-11-16 21:57:52 +01:00
Rossen Stoyanchev
15624f3929 Add gradlePluginPortal to docs.gradle 2020-11-16 13:25:16 +00:00
Rossen Stoyanchev
9733cf8515 Attempt to resolve artifactory 401 failures 2020-11-16 12:57:44 +00:00
Rossen Stoyanchev
08bb796c8c UrlPathHelper.removeJsessionid correctly appends remainder
Closes gh-26079
2020-11-16 11:28:25 +00:00
Juergen Hoeller
dc8a776cae Early log entry for async EntityManagerFactory initialization failure
Closes gh-26093
2020-11-13 18:03:06 +01:00
Juergen Hoeller
40a79a87ae Individually apply the SQL type from each SqlParameterSource argument
Closes gh-26071
2020-11-12 14:28:43 +01:00
Juergen Hoeller
65460db403 Upgrade to Hibernate ORM 5.3.19 2020-11-11 11:58:25 +01:00
Juergen Hoeller
32fcff5249 Polishing 2020-11-09 14:06:46 +01:00
Rossen Stoyanchev
9991649216 Refine logging in StompErrorHandler
Avoid a full stacktrace at ERROR level for a client message that could
not be sent to a MessageChannel.

Closes gh-26038
2020-11-05 21:54:40 +00:00
Juergen Hoeller
103f57a0a6 Polishing 2020-11-05 18:50:34 +01:00
Juergen Hoeller
a2a1a70c32 Suppress NotWritablePropertyException in case of ignoreUnknown=true
Closes gh-25986
2020-11-05 18:35:26 +01:00
Sam Brannen
7795f02988 Preserve registration order in @ActiveProfiles
With this commit, bean definition profiles declared via @ActiveProfiles
are once again stored in registration order, in order to support use
cases in Spring Boot and other frameworks that depend on the
registration order.

This effectively reverts the changes made in conjunction with gh-25973.

Closes gh-26004
2020-11-02 23:32:38 +01:00
Rossen Stoyanchev
0e49291982 Use static accessors in DefaultSimpUserRegistry
Closes gh-26010
2020-11-02 17:36:47 +00:00
Spring Buildmaster
a9edc23533 Next Development Version 2020-10-27 13:26:41 +00:00
Rossen Stoyanchev
b0726ffbb3 Full header support HTTP HEAD Resource requests
Allow the body to be written in order for all headers to be set
as they would be on HTTP GET. The body content is ignored as a
lower level.

See gh-25976
2020-10-27 12:05:58 +00:00
Rossen Stoyanchev
f02a2bef8f Allow Resource to add headers for range requests
Closes gh-25976
2020-10-27 11:50:20 +00:00
Juergen Hoeller
20fe1bcd99 Polishing 2020-10-26 18:19:20 +01:00
Sam Brannen
aa0a3bd4d9 Avoid cache miss for @ActiveProfiles w/ same profiles but different order
Prior to this commit, two @ActiveProfiles declarations with the same
profiles but different order resulted in an identical duplicate
ApplicationContext in the context cache in the Spring TestContext
Framework.

This commit uses a TreeSet to ensure that registered active profiles
are both unique and sorted, thereby avoiding cache misses for
semantically identical active profiles configuration on different test
classes.

Closes gh-25973
2020-10-26 13:16:15 +01:00
Juergen Hoeller
d5e637a33c Restore independent LinkedMultiValueMap implementation (without base class)
Closes gh-25960

(cherry picked from commit 82835b99ec)
2020-10-26 11:31:48 +01:00
Stephane Nicoll
e913167fa4 Upgrade to Reactor Californium-SR22
Closes gh-25948
2020-10-25 18:12:08 +01:00
Stephane Nicoll
ca7198c446 Start building against Reactor Californium-SR22 snapshots
See gh-25948
2020-10-21 14:29:47 +02:00
Juergen Hoeller
6d18ead0b7 Fail on warnings with compileGroovy (since it compiles Java code as well)
(cherry picked from commit d77ecb26a9)
2020-10-16 15:44:29 +02:00
Juergen Hoeller
f49e0e36ff Optimize String argument resolution in MessageTag
Closes gh-25809

(cherry picked from commit d9da663f6d)
2020-10-16 15:44:20 +02:00
Rossen Stoyanchev
3371c23343 Reinstate removal of jsessionid from lookup path
Closes gh-25864
2020-10-13 16:31:27 +01:00
Juergen Hoeller
da84155d8d Avoid outdated Jackson API in tests
See gh-25907
2020-10-13 11:24:15 +02:00
Juergen Hoeller
60a4766e9e Polishing 2020-10-13 01:29:11 +02:00
Juergen Hoeller
3fb51b0743 Polishing 2020-10-13 00:37:37 +02:00
Juergen Hoeller
25a1bfb093 Avoid creation of unused logger instance in AbstractMediaTypeExpression
Closes gh-25901
2020-10-13 00:37:17 +02:00
Juergen Hoeller
187b029671 Include Part headers support in MockMultipartHttpServletRequest
See gh-25829
2020-10-12 19:49:07 +02:00
Juergen Hoeller
87b1b618fb Polishing 2020-10-12 19:25:47 +02:00
Juergen Hoeller
3b09456991 Attempt fallback Part resolution even without StandardMultipartHttpServletRequest
Closes gh-25829
2020-10-12 19:24:38 +02:00
Juergen Hoeller
f4eefc62c1 Construct StringBuilder in StreamUtils with appropriate initial size
Closes gh-25789
2020-10-07 15:08:39 +02:00
Juergen Hoeller
6124a3f0ba Upgrade to Hibernate Validator 6.0.21, Undertow 2.0.32, Checkstyle 8.36.2 2020-10-06 17:50:28 +02:00
Juergen Hoeller
7861cfab6c Polishing 2020-10-06 17:50:08 +02:00
Juergen Hoeller
7ec6a9dc54 Consistent @Nullable declarations on overridden converter methods 2020-10-06 17:49:57 +02:00