Stephane Nicoll
0229cc45a0
Add support for Async invocation in a native image
...
This commit adds necessary hints so that Async-annotated method can be
discovered in a native image.
Closes gh-28710
2022-08-12 16:34:13 +02:00
Stephane Nicoll
3086d90e7d
Add the necessary hints for use of Cglib proxies
...
This commit expands GeneratedClassHandler to allow invocation of
declared fields and methods. Generated proxies have a number of
internal fields and methods that are invoked via reflection.
See gh-28954
2022-08-12 16:27:10 +02:00
Stephane Nicoll
7c2453c373
Integrate class proxy generation in AOT processing
...
This commit updates ApplicationContextAotGenerator to register a
handler that process Cglib generated classes. The handler registers
such classes to the GeneratedFiles and provide a hint so that it
can be instantiated using reflection.
Closes gh-28954
2022-08-12 12:17:13 +02:00
Juergen Hoeller
d6f73994c2
Fix malformed HTML in CGLIB javadoc
...
See gh-28955
2022-08-12 12:14:18 +02:00
Juergen Hoeller
7fa5b8dcb5
Turn CGLIB patch into full CGLIB fork in spring-core
...
Closes gh-28955
2022-08-12 11:38:43 +02:00
Sam Brannen
a052f9a34e
Polishing
2022-08-11 20:43:35 +02:00
Sam Brannen
7631a09405
Do not register SynthesizedAnnotation proxy for @AliasFor
...
Closes gh-28953
2022-08-11 20:32:03 +02:00
Sam Brannen
0207f3a55f
Polishing
2022-08-11 19:41:56 +02:00
Sébastien Deleuze
5c68a278b5
Add SchedulerFactoryBean runtime hints
...
Also require oracle/graalvm-reachability-metadata#19 .
Closes gh-28725
2022-08-11 15:42:53 +02:00
Stephane Nicoll
6ad7b85c27
Merge branch '5.3.x'
2022-08-11 13:31:58 +02:00
Stephane Nicoll
dfc06eda7a
Upgrade Java 8 version in CI image and .sdkmanrc
2022-08-11 13:31:36 +02:00
Stephane Nicoll
d1abdff89c
Merge branch '5.3.x'
2022-08-11 10:44:33 +02:00
Stephane Nicoll
f0aa6ebed6
Merge pull request #28949 from izeye
...
* pr/28949:
Polish "Add missing TreeSet to CollectionFactory.createCollection()"
Add missing TreeSet to CollectionFactory.createCollection()
Closes gh-28949
2022-08-11 10:43:56 +02:00
Stephane Nicoll
6806aaf162
Polish "Add missing TreeSet to CollectionFactory.createCollection()"
...
See gh-28949
2022-08-11 08:28:43 +02:00
Johnny Lim
ccec75c98d
Add missing TreeSet to CollectionFactory.createCollection()
...
See gh-28949
2022-08-11 08:22:11 +02:00
Juergen Hoeller
293e296d59
Reflectively invoke getIdentifier method (for compatibility with Hibernate 6)
...
Closes gh-28855
2022-08-11 00:55:33 +02:00
Juergen Hoeller
38c9e7f629
Polishing
2022-08-10 23:30:27 +02:00
Juergen Hoeller
b31a15851e
Support for pre-generated CGLIB proxy classes (in AOT scenarios)
...
Includes runtime storing of generated classes to a directory specified by the "cglib.generatedClasses" system property. Avoids lazy CGLIB fast-class generation and replaces generated Enhancer and MethodWrapper key classes with equivalent record types. Introduces support for early type determination in InstantiationStrategy, AopProxy and SmartInstantiationAwareBeanPostProcessor - in order to trigger CGLIB class generation in refreshForAotProcessing (through early determineBeanType calls for bean definitions).
Closes gh-28115
2022-08-10 23:30:19 +02:00
Stephane Nicoll
496b1879ab
Merge branch '5.3.x'
2022-08-09 15:32:27 +02:00
Stephane Nicoll
22029b4487
Merge pull request #28944 from wilkinsona
...
* pr/28944:
Correct description of @RequestParam with WebFlux
Closes gh-28944
2022-08-09 15:32:17 +02:00
Andy Wilkinson
d6b60046ce
Correct description of @RequestParam with WebFlux
...
See gh-28944
2022-08-09 15:30:08 +02:00
Stephane Nicoll
005713066c
Freeze configuration before invoking MBDPP instances
...
This commit updates refresh for AOT processing so that the configuration
is frozen before invoking MergedBeanDefinitionPostProcessor instances.
This makes sure that post-processed MergedBeanDefinitions are kept in
cache and not lost if a component attempts to clear the metadata cache.
Closes gh-28941
2022-08-09 13:29:14 +02:00
Stephane Nicoll
0a9db7cc47
Revert "Make sure inferred destroy method is set on the original bean definition"
...
This reverts commit 2e1538a20b .
2022-08-09 11:31:56 +02:00
Stephane Nicoll
cd2b7afc87
Avoid reflection on OptionalValidatorFactoryBean
...
Closes gh-28939
2022-08-08 16:53:53 +02:00
Stephane Nicoll
2e1538a20b
Make sure inferred destroy method is set on the original bean definition
...
This commit updates InitDestroyAnnotationBeanPostProcessor to mutate
the original bean definition rather than the merged one that can be
recreated without it if the cache gets stale.
See gh-28215
2022-08-08 14:33:00 +02:00
Stephane Nicoll
3c76437868
Update RegisteredBean to take a ConfigurableListableBeanFactory
...
This allows to have access to `getBeanDefinition` if the original
bean definition needs to be retrieved.
See gh-28936
2022-08-08 14:00:49 +02:00
Stephane Nicoll
832889d801
Polish
2022-08-08 11:31:38 +02:00
Sam Brannen
a875db4692
Document limitations of @CompileWithTargetClassAccess
...
Specifically, @CompileWithTargetClassAccess cannot be used with
@RepeatedTest and @ParameterizedTest methods since the
CompileWithTargetClassAccessExtension cannot support @TestTemplate
invocations.
2022-08-06 14:57:35 +03:00
Sam Brannen
1e8bc1b0fb
Polishing
2022-08-06 14:42:19 +03:00
Sam Brannen
7d364bba72
Clean up warnings
2022-08-06 14:41:54 +03:00
Sam Brannen
0944c9a99c
Remove throws IOException from DefaultGenerationContext.writeGeneratedContent()
...
The `throws` declaration is unnecessary since writeGeneratedContent()
will never throw an IOException.
2022-08-06 14:34:04 +03:00
Sam Brannen
a466179bc8
Polish and sync TestGenerationContext implementations
...
- new constructor for providing InMemoryGeneratedFiles
- writeGeneratedContent() now throws UncheckedIOException
2022-08-06 14:08:49 +03:00
Sam Brannen
1de0207874
Rename tests due to change in gh-28927
2022-08-05 13:59:14 +03:00
Sam Brannen
853407b6f8
Polishing
2022-08-05 13:57:28 +03:00
Stephane Nicoll
2cc4486e3d
Rename ApplicationContextAotGenerator entry point
...
Closes gh-28927
2022-08-05 10:19:06 +02:00
Stephane Nicoll
2475523e19
Merge branch '5.3.x'
2022-08-05 10:10:16 +02:00
Stephane Nicoll
6685e78c36
Deprecate NestedIOException
...
NestedIOException has been removed in Spring Framework 6 and this commit
marks it as deprecated in 5.x. Users that were relying on this exception
should use IOException directly.
Closes gh-28929
2022-08-05 10:04:47 +02:00
Stephane Nicoll
9264d97880
Restore GeneratedTypeReference
...
Closes gh-28926
2022-08-04 16:30:59 +02:00
Vedran Pavic
7e719fe3f8
Use Jakarta EE XML namespaces instead of Java EE
...
Closes gh-28903
2022-08-04 13:24:30 +02:00
Sam Brannen
31503df415
Fix Javadoc link syntax plus polishing
2022-08-04 13:52:40 +03:00
Johnny Lim
9fea0be33e
Upgrade to Dokka Gradle plugin 1.7.10
...
Closes gh-28912
2022-08-04 11:37:04 +02:00
Brian Clozel
fea29ea4cd
Upgrade Gradle plugins
2022-08-04 11:29:34 +02:00
Brian Clozel
9e71889ed9
Merge branch '5.3.x'
2022-08-04 11:02:52 +02:00
Chanhyeong Cho
8685b2f5bf
Fix broken kdoc-api links in kotlin.adoc
...
Fixes gh-28908
2022-08-04 11:02:02 +02:00
Sam Brannen
843221b448
Fix broken Javadoc links
...
See gh-28906
2022-08-04 11:51:56 +03:00
Stephane Nicoll
6c81ac9454
Merge branch '5.3.x'
2022-08-04 10:04:00 +02:00
Stephane Nicoll
4af225405c
Upgrade Java 18 version in CI image
2022-08-04 10:02:49 +02:00
Stephane Nicoll
51e594ae81
Upgrade Java 17 version in CI image
2022-08-04 10:02:15 +02:00
Stephane Nicoll
c2554b2b27
Upgrade Java 11 version in CI image
2022-08-04 10:01:49 +02:00
Stephane Nicoll
86a762b5ee
Upgrade Java 8 version in CI image
2022-08-04 10:01:23 +02:00