Commit Graph

33128 Commits (580e01283aba3cfb10fbc7d0b8ca79ce9d98ad4a)
 

Author SHA1 Message Date
Andy Wilkinson 5a9fa3c8f1 Only close context that is active
Previously, SpringApplicationShutdownHook would call close() on any
registered application context even if it wasn't active as it had
already been closed. This could lead to deadlock if the context was
closed and System.exit was called during application context refresh.

This commit updates SpringApplicationShutdownHook so that it only
calls close() on active contexts. This prevents deadlock as it avoids
trying to sychronize on the context's startupShutdownMonitor on
the shutdown hook thread while it's still held on the main thread
which called System.exit and is waiting for all of the shutdown hooks
to complete.

Fixes gh-27049
3 years ago
Andy Wilkinson 0c01a08bba Merge branch '2.5.x' 3 years ago
Andy Wilkinson 05b041bc86 Merge branch '2.4.x' into 2.5.x 3 years ago
Spring Buildmaster 99a840937b Next development version (v2.4.9-SNAPSHOT) 3 years ago
Andy Wilkinson d56ddb0f60 Merge branch '2.5.x'
See gh-27050
3 years ago
Andy Wilkinson 4572ae5430 Use reflection to extract Netty's default level
See gh-27046
3 years ago
Andy Wilkinson fcf7240f3c Merge branch '2.5.x'
See gh-27047
3 years ago
Andy Wilkinson f7140d0401 Merge branch '2.4.x' into 2.5.x
See gh-27045
3 years ago
Andy Wilkinson 316d2cce89 Don't offer upgrade for version that is already aligned
See gh-27044
3 years ago
Andy Wilkinson 9b91c18163 Merge branch '2.5.x'
See gh-27073
3 years ago
Andy Wilkinson e2d68aa8b2 Merge branch '2.4.x' into 2.5.x
See gh-27072
3 years ago
Andy Wilkinson a7872f47da Minimize Instantiator's public API
See gh-27043
3 years ago
Phillip Webb 6686a49b1f Merge branch '2.5.x'
Closes gh-27074
3 years ago
Phillip Webb b093db104c Pass ResourceLoader.getClassLoader() to Instantiator
Update calls to `Instantiator` to that they also include
`ResourceLoader.getClassLoader()`.

Closes gh-27071
3 years ago
Phillip Webb fe34bcdd52 Merge branch '2.5.x'
Closes gh-27073
3 years ago
Phillip Webb 641dfbdf98 Merge branch '2.4.x' into 2.5.x
Fixes gh-27072
3 years ago
Phillip Webb 5088927f80 Pass ClassLoader to Instantiator
Update `Instantiator` so that it can accept a `ClassLoader` when
creating instances and rework `EnvironmentPostProcessorsFactory` to
use the new methods.

Prior to this commit we would use the `ClassLoader` to get the class
names from `SpringFactories` but not when actually creating the
instances.

Fixes gh-27043
3 years ago
Stephane Nicoll 7d8e7468bf Merge branch '2.5.x'
See gh-27065
3 years ago
Stephane Nicoll d079db1dce Polish
See gh-26978
3 years ago
Stephane Nicoll 0ca259abba Merge branch '2.5.x' 3 years ago
Stephane Nicoll 2dc5bc482b Merge branch '2.4.x' into 2.5.x 3 years ago
Stephane Nicoll 57f5030397 Upgrade to Netty tcNative 2.0.40.Final
Closes gh-27070
3 years ago
Stephane Nicoll 43f6393e9a Upgrade to Hazelcast 4.1.4
Closes gh-27069
3 years ago
Stephane Nicoll 6889d2adda Upgrade to Nimbus JOSE JWT 8.22
Closes gh-27068
3 years ago
Stephane Nicoll d4039648c7 Upgrade to OAuth2 OIDC SDK 8.36.2
Closes gh-27067
3 years ago
Stephane Nicoll 1f53e93b8d Upgrade to Netty tcNative 2.0.40.Final
Closes gh-27066
3 years ago
Stephane Nicoll 8e6f3ab953 Merge branch '2.5.x'
Closes gh-27065
3 years ago
Stephane Nicoll d4fa46f1b9 Polish startup endpoint description in reference doc
Closes gh-26978
3 years ago
Stephane Nicoll 3dc605b98e Merge branch '2.5.x' 3 years ago
Stephane Nicoll 6f11d01506 Merge branch '2.4.x' into 2.5.x 3 years ago
Stephane Nicoll 32d6b52980 Upgrade to Spring Integration 5.5.1
Closes gh-26974
3 years ago
Stephane Nicoll dd63f98fcf Upgrade to Spring Kafka 2.7.3
Closes gh-26973
3 years ago
Stephane Nicoll b5cdc84273 Upgrade to Spring AMQP 2.3.9
Closes gh-26972
3 years ago
Stephane Nicoll 006995fef7 Upgrade to Spring Integration 5.4.8
Closes gh-26967
3 years ago
Stephane Nicoll 6804ae849d Upgrade to Spring AMQP 2.3.9
Closes gh-26966
3 years ago
Phillip Webb cb3a41c4db Merge branch '2.5.x'
Closes gh-27064
3 years ago
Phillip Webb 8d10e04ea3 Merge pull request #26930 from dreis2211
* pr/26930:
  Avoid illegal reflective access in CLI tests

Closes gh-26930
3 years ago
dreis2211 7a25e4edb8 Avoid illegal reflective access in CLI tests
See gh-26930
3 years ago
Phillip Webb 6b241d04c0 Merge branch '2.5.x'
Closes gh-27063
3 years ago
Phillip Webb 093e7f7e3b Merge branch '2.4.x' into 2.5.x
Closes gh-27062
3 years ago
Phillip Webb 1a7569056b Fix 'spring.datasource.name' property description
Closes gh-27026
3 years ago
Phillip Webb 6102f10639 Merge branch '2.5.x' 3 years ago
Phillip Webb 2c518f1dff Merge branch '2.4.x' into 2.5.x 3 years ago
Phillip Webb a76e5c043e Update copyright year of changed files 3 years ago
Phillip Webb b141fcf51d Merge branch '2.5.x'
Closes gh-27061
3 years ago
Phillip Webb 84fab65b9a Merge branch '2.4.x' into 2.5.x
Closes gh-27060
3 years ago
Phillip Webb ea62967ef4 Improve "reason" message in BindFailureAnalyzer
Update `BindFailureAnalyzer` so that the "Reason" message includes
the root cause exception type and message.

Closes gh-27028
3 years ago
Phillip Webb 0e28e24123 Rethrow ConverterNotFoundException when possible
Update `BindConverter` to throw the first `ConversionFailedException`
rather than always throwing `ConverterNotFoundException`.

See gh-27028
3 years ago
Phillip Webb 1e585f1152 Merge branch '2.5.x'
Closes gh-27052
3 years ago
Phillip Webb e9d3e0d022 Merge branch '2.4.x' into 2.5.x
Closes gh-27053
3 years ago