Stephane Nicoll
7eebc48a6e
Upgrade Ubuntu version in CI image
2022-06-09 08:11:36 +02:00
Arjen Poutsma
283bc9ede9
Merge pull request #28569 from christophejan:fix/28567
...
* gh-28567:
Polish
Add minimal Kotlin DSL RouterFunction attributes support
Add test case on nested RouterFunction attributes
2022-06-08 17:08:44 +02:00
Arjen Poutsma
216a266856
Polish
2022-06-08 17:00:58 +02:00
christophejan
bbabf8d855
Add minimal Kotlin DSL RouterFunction attributes support
...
Closes gh-28567
2022-06-08 16:49:46 +02:00
christophejan
5b1bda5c7c
Add test case on nested RouterFunction attributes
2022-06-08 16:49:46 +02:00
Sam Brannen
282c3bc952
Merge branch '5.3.x'
2022-06-08 16:40:23 +02:00
Sam Brannen
8478e8e70a
Polish contribution
...
This commit:
- fixes Checkstyle violations
- improves Javadoc
- adds missing @since tags
- renames getCurrentQueueSize() to getQueueSize()
- avoids NullPointerExceptions in getQueueSize()
- introduces tests for queue size and queue capacity
Closes gh-28583
2022-06-08 16:39:10 +02:00
Rémy
e386bdb82c
Expose ThreadPoolTaskExecutor queue size and capacity for metrics
...
We use Grafana to monitor our app via Spring's JMX exporter, and we
think it could be interesting to have at least the current queue size
for this purpose since the queue size directly affects the app memory
load. Having the queue capacity seems also interesting to set up
triggers whose values are calculated based on the maximum capacity of
the queue.
This commit introduces new getCurrentQueueSize() and getQueueCapacity()
methods in ThreadPoolTaskExecutor.
See gh-28583
2022-06-08 16:39:00 +02:00
Stephane Nicoll
571543285a
Polish
2022-06-08 14:08:16 +02:00
Arjen Poutsma
c9053e4d9b
Merge branch '5.3.x'
2022-06-08 12:18:12 +02:00
Arjen Poutsma
4912c3c455
Updated sdkmanrc
2022-06-08 12:13:21 +02:00
Stephane Nicoll
16eff68357
Fix package tangle between o.s.core and o.s.aot
...
Closes gh-28496
2022-06-08 11:53:51 +02:00
rstoyanchev
875ee546e5
Merge branch '5.3.x'
2022-06-08 10:43:36 +01:00
rstoyanchev
8fcc7ab9d1
CompositeLog respects log level changes at runtime
...
Closes gh-28477
2022-06-08 10:07:52 +01:00
rstoyanchev
7c47b470ff
MockMvc allows HttpMethod input for multipart request
...
Closes gh-28545
2022-06-08 10:07:52 +01:00
Sam Brannen
90e0bd146a
Merge branch '5.3.x'
...
# Conflicts:
# spring-test/src/main/java/org/springframework/test/context/ContextConfiguration.java
# spring-test/src/main/java/org/springframework/test/context/TestPropertySource.java
# spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java
# spring-test/src/main/java/org/springframework/test/context/support/AbstractTestContextBootstrapper.java
2022-06-08 10:01:01 +02:00
Sam Brannen
479ef3f3fd
Update documentation regarding nested test class support
...
Closes gh-28579
2022-06-08 09:52:42 +02:00
Scott Frederick
45ef21f900
Add support for annotation processors with TestCompiler
...
Closes gh-28582
2022-06-07 16:53:28 -07:00
Scott Frederick
4128a71657
Polish javadoc
2022-06-07 16:49:42 -07:00
Phillip Webb
7119d420ce
Define compiled classes when @CompileWithTargetClassAccess is used
...
Update `DynamicClassLoader` to load classes eagerly if they are being
defined in the parent classloader.
See gh-28580
2022-06-07 16:45:54 -07:00
Phillip Webb
46a2f2d71c
Allow @CompileWithTargetClassAccess to work with all classes
...
Switch from `MethodHandles.privateLookupIn` to a reflection based
approach to that target classes to not need to be explicitly listed.
Closes gh-28580
2022-06-07 14:12:15 -07:00
Phillip Webb
c01a2e897d
Fix null assignment to non-nullable field
...
Update `BeanRegistrationCodeFragments` package-private constructor
to set `codeFragments` to `this` rather than `null`. The field
is never actually read by `DefaultBeanRegistrationCodeFragments` since
all methods are overridden.
Closes gh-28578
2022-06-07 10:09:08 -07:00
Sam Brannen
22ef3ec783
Merge branch '5.3.x'
...
# Conflicts:
# .mailmap
2022-06-07 14:30:45 +02:00
Sam Brannen
be1b7da12f
Add entries for "Sam Brannen" to .mailmap
2022-06-07 14:27:42 +02:00
Phillip Webb
89360b18f4
Update '.mailmap` to consistently use @vmware.com emails
...
(cherry picked from commit 83063a7269
)
2022-06-07 14:14:10 +02:00
Stephane Nicoll
92961d75f0
Polish tests
2022-06-07 12:03:50 +02:00
Stephane Nicoll
ad0573a91e
Polish
2022-06-07 11:52:40 +02:00
Stephane Nicoll
62d98685ce
Merge branch '5.3.x'
2022-06-07 08:30:59 +02:00
Stephane Nicoll
209fe5f452
Merge pull request #28572 from gorisanson
...
* pr/28572:
Polish contribution
Update reference docs to use PropertySourcesPlaceholderConfigurer
Closes gh-28572
2022-06-07 08:30:52 +02:00
Stephane Nicoll
e18a118f8b
Polish contribution
...
See gh-28572
2022-06-07 08:29:28 +02:00
Lee, Kyutae
77aac7768d
Update reference docs to use PropertySourcesPlaceholderConfigurer
...
See gh-28572
2022-06-07 08:22:53 +02:00
Phillip Webb
26944f3c8e
Implement CompileWithTargetClassAccessClassLoader.findResource
...
Fixes gh-28574
2022-06-06 12:28:33 -07:00
Phillip Webb
305055d6b1
Pass GenerationContext to customizeBeanRegistrationCodeFragments
...
Update `customizeBeanRegistrationCodeFragments` so that it can access
the `GenerationContext`.
See gh-28557
2022-06-05 18:59:02 -07:00
Phillip Webb
9a9c3ea00e
Filter single inferred init/destroy methods
...
Update `BeanDefinitionPropertiesCodeGenerator` to not add
init/destroy method calls for a single inferred name.
Closes gh-28570
2022-06-05 16:14:40 -07:00
Phillip Webb
172102d225
Refine ApplicationContextAotGenerator class name generation
...
Refine the class name logic so that the name is passed in rather
than using `ApplicationContext.getId()`. Also propagate the name
so that the generated classes use it.
See gh-28565
2022-06-04 12:26:00 -07:00
Phillip Webb
4bd33cb6e0
Allow ApplicationContextAotGenerator to generated better class names
...
Update `ApplicationContextAotGenerator` so that it can generate class
names based on a `target` class and using the ID of the application
context. Prior to this commit, the generated class name was always
`__.BeanFactoryRegistrations`.
Closes gh-28565
2022-06-03 18:15:37 -07:00
Sam Brannen
243350054b
Upgrade to AssertJ 3.23.1
2022-06-03 19:44:34 +02:00
Sébastien Deleuze
74c49c510a
Use a single --initialize-at-build-time parameter per file
...
Closes gh-28563
2022-06-03 17:39:47 +02:00
Sam Brannen
92f8ab774f
Stop initializing DataSize at build time for GraalVM
...
In light of gh-28560, this commit reverts the change made in gh-28328.
Closes gh-28562
2022-06-03 16:41:36 +02:00
Stephane Nicoll
3aefa88d3c
Add test to validate AOT infrastructure registration
...
See gh-28561
2022-06-03 14:30:36 +02:00
Stephane Nicoll
176ea5e9a7
Fix registration of ScopedProxyBeanRegistrationAotProcessor
...
Closes gh-28561
2022-06-03 14:28:08 +02:00
Sam Brannen
0a7a53af6d
Polish contribution
...
See gh-27609
2022-06-03 13:59:55 +02:00
Vedran Pavic
864dcf67d8
Simplify default locale/timezone resolution in cookie/session locale resolvers
...
At present, the customization of the default locale and timezone
resolution in CookieLocaleResolver and SessionLocaleResolver requires
subclassing them and overriding determineDefaultLocale and/or
determineDefaultTimeZone methods.
This commit simplifies resolution of the default locale and timezone
resolution by introducing dedicated functions for these purposes, thus
allowing customization without needing to resort to subclassing the
locale resolvers.
Closes gh-27609
2022-06-03 13:59:46 +02:00
Vedran Pavic
94cc2da33b
Update LocaleContextResolver to implement LocaleResolver
...
This commit updates LocaleContextResolver to implement LocaleResolver
using default methods, which simplifies AbstractLocaleContextResolver
and aligns it more closely with AbstractLocaleResolver.
See gh-27609
2022-06-03 13:59:38 +02:00
Vedran Pavic
9a0eb8db28
Update AcceptHeaderLocaleResolver to extend AbstractLocaleResolver
...
This commit updates AcceptHeaderLocaleResolver to extend
AbstractLocaleResolver, which allows the removal of defaultLocale
managing code in AcceptHeaderLocaleResolver.
See gh-27609
2022-06-03 13:59:30 +02:00
Sam Brannen
73acab7635
Merge branch '5.3.x'
...
# Conflicts:
# spring-webmvc/src/main/java/org/springframework/web/servlet/support/RequestContextUtils.java
2022-06-03 13:35:22 +02:00
Sam Brannen
e2767371b5
Lazily initialize DataSize.PATTERN
...
To avoid unnecessary eager initialization of DataSize.PATTERN, this
commit initializes it lazily in the first invocation of DataSize.parse
by moving PATTERN to a private static nested class.
Closes gh-28560
2022-06-03 13:30:45 +02:00
Sam Brannen
aab9da0366
Polish LocaleResolver support
2022-06-03 13:10:55 +02:00
Stephane Nicoll
4191958e00
Merge pull request #28559 from neiser
...
* pr/28559:
Polish "Improve AssertJ usage in cache config tests"
Improve AssertJ usage in cache config tests
Closes gh-28559
2022-06-03 10:45:40 +02:00
Stephane Nicoll
baebf71ed7
Polish "Improve AssertJ usage in cache config tests"
...
See gh-28559
2022-06-03 10:33:01 +02:00