From b07f81484532b4539f4084136895f02541fc646c Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Wed, 20 Mar 2019 15:58:40 +0000 Subject: [PATCH] Remove reactor sample - works in rc14 now that logging is fixed --- reactor/README.md | 29 -------- reactor/build.sh | 12 ---- reactor/pom.xml | 81 ----------------------- reactor/reactor.json | 2 - reactor/src/main/java/com/sample/App.java | 19 ------ 5 files changed, 143 deletions(-) delete mode 100644 reactor/README.md delete mode 100755 reactor/build.sh delete mode 100644 reactor/pom.xml delete mode 100644 reactor/reactor.json delete mode 100644 reactor/src/main/java/com/sample/App.java diff --git a/reactor/README.md b/reactor/README.md deleted file mode 100644 index 5792012..0000000 --- a/reactor/README.md +++ /dev/null @@ -1,29 +0,0 @@ -Related issue on GraalVM bugtracker: [graal#997](https://github.com/oracle/graal/issues/997). - -Here's the app that is broken: - -``` -public class App { - - public static void main(String[] args) throws Exception { - Loggers.useJdkLoggers(); - CountDownLatch latch = new CountDownLatch(1); - Mono.just("Hello").subscribe(value -> { - latch.countDown(); - System.out.println(value); - }); - latch.await(1000L, TimeUnit.MILLISECONDS); - } - -} -``` - -In a normal JVM: - -``` -$ java -jar target/rome-1.0-SNAPSHOT.jar -... -Hello -``` - -Breaks on native image compilation. Works if you comment out the `Loggers` line. \ No newline at end of file diff --git a/reactor/build.sh b/reactor/build.sh deleted file mode 100755 index da8fa33..0000000 --- a/reactor/build.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -mvn clean install -native-image -H:Name=target/demo -H:ReflectionConfigurationFiles=reactor.json -H:IncludeResources='META-INF/services/.*' \ - --report-unsupported-elements-at-runtime --allow-incomplete-classpath \ - -cp target/reactor-1.0-SNAPSHOT.jar com.sample.App - -echo "In regular JVM" -java -jar target/reactor-1.0-SNAPSHOT.jar -echo "" -echo "As GraalVM native image" -./target/demo \ No newline at end of file diff --git a/reactor/pom.xml b/reactor/pom.xml deleted file mode 100644 index eb13fb0..0000000 --- a/reactor/pom.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - 4.0.0 - - com.sample - reactor - 1.0-SNAPSHOT - - reactor - - - UTF-8 - 1.8 - 1.8 - - - - - io.projectreactor - reactor-core - 3.2.3.RELEASE - - - - - - - maven-shade-plugin - 3.2.1 - - - package - - shade - - - - - - com.sample.App - - - true - true - - - *:* - - META-INF/*.SF - META-INF/*.DSA - META-INF/*.RSA - - - - - - - - true - true - - - *:* - - META-INF/*.SF - META-INF/*.DSA - META-INF/*.RSA - - - - - - - - - diff --git a/reactor/reactor.json b/reactor/reactor.json deleted file mode 100644 index 32960f8..0000000 --- a/reactor/reactor.json +++ /dev/null @@ -1,2 +0,0 @@ -[ -] \ No newline at end of file diff --git a/reactor/src/main/java/com/sample/App.java b/reactor/src/main/java/com/sample/App.java deleted file mode 100644 index bce2fb2..0000000 --- a/reactor/src/main/java/com/sample/App.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.sample; - -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; - -import reactor.core.publisher.Mono; - -public class App { - - public static void main(String[] args) throws Exception { - CountDownLatch latch = new CountDownLatch(1); - Mono.just("Hello").subscribe(value -> { - latch.countDown(); - System.out.println(value); - }); - latch.await(1000L, TimeUnit.MILLISECONDS); - } - -}