Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove java 8 home and other complicated things from the build * move src from java-jdk9-only, scala-jdk-9, java-jdk-9 * compiler warnings * migration guide * fail fast if not JDK 11 or higher * not anonymous actor class, #32128
- Loading branch information
Showing
29 changed files
with
394 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
...-stream-tests/src/test/java-jdk9-only/akka/stream/javadsl/JavaFlowSupportCompileTest.java
This file was deleted.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
akka-stream-tests/src/test/java/akka/stream/javadsl/JavaFlowSupportCompileTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (C) 2017-2023 Lightbend Inc. <https://www.lightbend.com> | ||
*/ | ||
|
||
package akka.stream.javadsl; | ||
|
||
import akka.NotUsed; | ||
import akka.japi.Pair; | ||
import java.util.concurrent.Flow; | ||
import org.junit.Test; | ||
import org.scalatestplus.junit.JUnitSuite; | ||
|
||
public class JavaFlowSupportCompileTest extends JUnitSuite { | ||
@Test | ||
public void shouldCompile() throws Exception { | ||
final Flow.Processor<String, String> processor = | ||
new Flow.Processor<String, String>() { | ||
@Override | ||
public void subscribe(Flow.Subscriber<? super String> subscriber) {} | ||
|
||
@Override | ||
public void onSubscribe(Flow.Subscription subscription) {} | ||
|
||
@Override | ||
public void onNext(String item) {} | ||
|
||
@Override | ||
public void onError(Throwable throwable) {} | ||
|
||
@Override | ||
public void onComplete() {} | ||
}; | ||
|
||
final Source<String, Flow.Subscriber<String>> stringSubscriberSource = | ||
JavaFlowSupport.Source.asSubscriber(); | ||
final Source<String, NotUsed> stringNotUsedSource = | ||
JavaFlowSupport.Source.fromPublisher(processor); | ||
|
||
final akka.stream.javadsl.Flow<String, String, NotUsed> stringStringNotUsedFlow = | ||
JavaFlowSupport.Flow.fromProcessor(() -> processor); | ||
final akka.stream.javadsl.Flow<String, String, NotUsed> stringStringNotUsedFlow1 = | ||
JavaFlowSupport.Flow.fromProcessorMat(() -> Pair.apply(processor, NotUsed.getInstance())); | ||
|
||
final Sink<String, Flow.Publisher<String>> stringPublisherSink = | ||
JavaFlowSupport.Sink.asPublisher(AsPublisher.WITH_FANOUT); | ||
final Sink<String, NotUsed> stringNotUsedSink = JavaFlowSupport.Sink.fromSubscriber(processor); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.