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:
Oleg Zhurakousky
2019-06-05 16:48:30 +02:00
parent db817b850d
commit bb1a94bfe8
2 changed files with 18 additions and 1 deletions

View File

@@ -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();

View File

@@ -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>