GH-8703: Fix MessagingAnnotationPP for AOT

Fixes https://github.com/spring-projects/spring-integration/issues/8703

* Instantiate a `MessagingAnnotationBeanPostProcessor` via factory method from `MessagingAnnotationPostProcessor`
avoiding extra code generation on an explicitly provided complex `Map` for bean definition property
* Fix test to react properly to a new logic of `MessagingAnnotationBeanPostProcessor` bean registration
This commit is contained in:
EddieChoCho
2023-08-12 09:47:28 -04:00
committed by Artem Bilan
parent ba6d35d123
commit ef5db3059d
12 changed files with 74 additions and 72 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -835,7 +835,7 @@ public class TcpNioConnectionTests {
assertThat(reading.await(10, TimeUnit.SECONDS)).isTrue();
socket.close();
cf.stop();
assertThat(watch.getLastTaskTimeMillis()).isLessThan(950L);
assertThat(watch.lastTaskInfo().getTimeMillis()).isLessThan(950L);
}
@Test