Sam Brannen
c419ea7ba7
Use MethodFilter.and() in ReflectiveAspectJAdvisorFactory
4 years ago
Juergen Hoeller
66292cd7a1
Individually apply the SQL type from each SqlParameterSource argument
...
Closes gh-26071
4 years ago
fengyuanwei
6eec1acdac
Make tests meaningful in DefaultListableBeanFactoryTests
4 years ago
izeye
bc32d513d9
Polish Javadoc for InjectionMetadata.forElements()
4 years ago
Sam Brannen
3851b291da
Use MethodFilter.and() in TransactionalTestExecutionListener
4 years ago
Rossen Stoyanchev
2b1f229998
LimitedDataBufferList adds or raises error
...
Closes gh-26060
4 years ago
Sam Brannen
fc5e3c335f
Introduce and() methods in MethodFilter & FieldFilter for composition
...
This commit introduces `and()` default methods in the MethodFilter and
FieldFilter functional interfaces in ReflectionUtils in order to simplify
uses cases that need to compose filter logic.
Closes gh-26063
4 years ago
Сергей Цыпанов
daf9a82e8c
Simplify AbstractAspectJAdvice.isVariableName()
4 years ago
Sam Brannen
b019f30a15
Validate that test & lifecycle methods are not @Autowired
...
Prior to this commit, a developer may have accidentally annotated a
JUnit Jupiter test method or lifecycle method with @Autowired , and that
would have potentially resulted in an exception that was hard to
understand. This is because the Spring container considers any
@Autowired method to be a "configuration method" when autowiring the
test class instance. Consequently, such an @Autowired method would be
invoked twice: once by Spring while attempting to autowire the test
instance and another time by JUnit Jupiter when invoking the test or
lifecycle method. The autowiring invocation of the method often leads
to an exception, either because Spring cannot satisfy a dependency (such
as JUnit Jupiter's TestInfo) or because the body of the method fails due
to test setup that has not yet been invoked.
This commit introduces validation for @Autowired test and lifecycle
methods in the SpringExtension that will throw an IllegalStateException
if any @Autowired method in a test class is also annotated with any of
the following JUnit Jupiter annotations.
- @Test
- @TestFactory
- @TestTemplate
- @RepeatedTest
- @ParameterizedTest
- @BeforeAll
- @AfterAll
- @BeforeEach
- @AfterEach
Closes gh-25966
4 years ago
Spring Buildmaster
d5b5e894c9
Next development version (v5.3.2-SNAPSHOT)
4 years ago
Rossen Stoyanchev
2899652d8e
Fix checkstyle violation
4 years ago
Rossen Stoyanchev
560a504a83
Polishing in DefaultWebClient
4 years ago
Rossen Stoyanchev
79f79e9306
WebClient method to populate the Reactor Context
...
The alternative is to use a filter but this makes it a little easier
and also guarantees that it will be downstream from all filters
regardless of their order, and therefore the Context will be visible
to all of them.
Closes gh-25710
4 years ago
Juergen Hoeller
bd2640a9d6
Strict nullability for field assignment
4 years ago
Juergen Hoeller
6825287360
Polishing
4 years ago
Sébastien Deleuze
737d77a739
Fix @Transactional support on functions returning Flow
...
Closes gh-26052
4 years ago
Sébastien Deleuze
1f13516528
Fix @Transactional support on suspending function
...
With this commit, @Transactional on suspending functions
returning a value now commits the transaction properly.
Closes gh-25998
4 years ago
Rossen Stoyanchev
6bb3ad793e
Add isOpen to WebSocketSession in WebFlux
...
Closes gh-26043
4 years ago
Sébastien Deleuze
c73cff8bad
Use RxJava 2/3 fromPublisher() when possible in ReactiveAdapterRegistry
...
Closes gh-26051
4 years ago
Juergen Hoeller
e592634290
Polishing
4 years ago
Juergen Hoeller
b25637e8ad
Make setTaskScheduler and setTcpClient chaining-friendly
...
Closes gh-26049
4 years ago
izeye
0c347769a2
Fix wrong reference in UrlPathHelper.removeSemicolonContentInternal()
...
This commit also changes to short-circuit when `slashIndex` is -1.
4 years ago
Juergen Hoeller
2497d4285f
Detect existing DispatcherServlet strategy beans in parent context as well
...
Closes gh-25290
4 years ago
Sébastien Deleuze
32238cc996
Add CoroutinesAnnotationTransactionInterceptorTests
...
suspendingValueSuccess() currently fails due to an
unexpected rollback on transactional suspending functions
returning a value.
See gh-25998
4 years ago
Sébastien Deleuze
d80dd50c9d
Add CoroutinesAnnotationTransactionInterceptorTests
...
suspendingValueSuccess() currently fails due to an
unexpected rollback on transactional suspending functions
returning a value.
See gh-25998
4 years ago
Sébastien Deleuze
bdf120f1ef
Add CoroutinesAnnotationTransactionInterceptorTests
...
suspendingValueSuccess() currently fails due to an
unexpected rollback on transactional suspending functions
returning a value.
See gh-25998
4 years ago
Sébastien Deleuze
e781d21097
Add CoroutinesAnnotationTransactionInterceptorTests
...
suspendingValueSuccess() currently fails due to an
unexpected rollback on transactional suspending functions
returning a value.
See gh-25998
4 years ago
Sébastien Deleuze
8cef13cc30
Upgrade to Kotlin Coroutines 1.4.1
4 years ago
Rüdiger Schulz
2214ff8ce0
Fix Kotlin example code which does not compile
...
This kotlin code does not compile:
Overload resolution ambiguity. All these functions match.
default <R> RowsFetchSpec<R> map(Function<Row, R> mappingFunction)
<R> RowsFetchSpec<R> map(BiFunction<Row, RowMetadata, R> mappingFunction);
Closes gh-26016
4 years ago
Sam Brannen
411539ffef
Update copyright date
...
See gh-26044
4 years ago
NaNRailgun
11aa901634
Delete explicit type arguments that can be inferred
...
Closes gh-26044
4 years ago
Rossen Stoyanchev
6e51370490
AbstractJackson2Encoder support for MappingJacksonValue
...
Closes gh-26035
4 years ago
Rossen Stoyanchev
bcd2b9a8a7
Further refine logging in StompErrorHandler
...
In 5.3.x and forward, completely avoid logging unsent CONNECT messages
that are most likely authentication issues before the session is even
established.
Closes gh-26026
4 years ago
Rossen Stoyanchev
17dd7785f6
Refine logging in StompErrorHandler
...
Avoid a full stacktrace at ERROR level for a client message that could
not be sent to a MessageChannel.
See gh-26026
4 years ago
Juergen Hoeller
21f9d05bd9
Upgrade to Jetty 9.4.34, AssertJ 3.18, Mockito 3.6
4 years ago
Juergen Hoeller
19911af30a
Polishing
4 years ago
Juergen Hoeller
6acb091c4e
Upgrade SpelCompiler bytecode level to 1.8 and optimize for concurrent access
...
Closes gh-26033
4 years ago
Juergen Hoeller
99ed01e3f7
Optimize locking in AspectJProxyFactory for concurrent aspect instantiation
...
Closes gh-26034
4 years ago
Juergen Hoeller
2657757566
Separate assignment statements for local variable and instance field
...
See gh-25899
4 years ago
Сергей Цыпанов
e1f51b4bf8
Avoid multiple volatile reads/writes in a row where only one is enough
4 years ago
Juergen Hoeller
f2f84bfa7a
Polishing
4 years ago
Juergen Hoeller
6d67bdf04f
Polishing
4 years ago
Juergen Hoeller
97c8628bd6
Suppress NotWritablePropertyException in case of ignoreUnknown=true
...
Closes gh-25986
4 years ago
Juergen Hoeller
990a9c74b9
Restore removal of trailing semicolon content
...
See gh-26012
4 years ago
Juergen Hoeller
b815accca9
Upgrade to Hibernate ORM 5.4.23
4 years ago
Juergen Hoeller
4e8d6bea4d
Fix test code formatting
4 years ago
Juergen Hoeller
079ca80854
SpEL supports record-style accessor methods as well
...
Closes gh-26029
4 years ago
Juergen Hoeller
412aa06d86
Reliably refresh metadata for dynamically changing prototype bean class
...
Closes gh-26019
4 years ago
Juergen Hoeller
d5b3e65718
Add since tag
...
See gh-26025
4 years ago
Juergen Hoeller
a4679b87b9
Fix Checkstyle violation and rearrange getAdvisorCount declaration
...
See gh-26017
4 years ago