GH-1600 Java 11 compatibility fixes
Added explicit dependency declarations for missing javax.* packages Fixed compile errors in affected classes Resolves #1600
This commit is contained in:
@@ -21,6 +21,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.reactivestreams.Publisher;
|
||||
@@ -230,8 +231,9 @@ public class StreamEmitterBasicTests {
|
||||
@Bean
|
||||
public Publisher<Message<String>> emit() {
|
||||
AtomicInteger atomicInteger = new AtomicInteger();
|
||||
|
||||
return IntegrationFlows
|
||||
.from(() -> new GenericMessage<>(
|
||||
.from((Supplier<?>) () -> new GenericMessage<>(
|
||||
"Hello World!!" + atomicInteger.getAndIncrement()),
|
||||
e -> e.poller(p -> p.fixedDelay(1)))
|
||||
.<String, String>transform(String::toUpperCase).toReactivePublisher();
|
||||
|
||||
@@ -76,6 +76,21 @@
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.xml.bind</groupId>
|
||||
<artifactId>jaxb-api</artifactId>
|
||||
<version>2.3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.xml.bind</groupId>
|
||||
<artifactId>jaxb-core</artifactId>
|
||||
<version>2.3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.xml.bind</groupId>
|
||||
<artifactId>jaxb-impl</artifactId>
|
||||
<version>2.3.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
Reference in New Issue
Block a user