This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko.git
The following commit(s) were added to refs/heads/main by this push:
new 2f503e5cc5 update doc and tests that still refer to java 8 (#2458)
2f503e5cc5 is described below
commit 2f503e5cc564ba7b58e36057be2e413379561ecb
Author: PJ Fanning <[email protected]>
AuthorDate: Sat Nov 8 21:19:02 2025 +0100
update doc and tests that still refer to java 8 (#2458)
---
README.md | 2 +-
.../pekko/actor/typed/internal/ActorFlightRecorder.scala | 3 +--
.../src/main/paradox/stream/operators/Source/asSubscriber.md | 3 +--
.../main/paradox/stream/operators/Source/fromPublisher.md | 3 +--
remote/src/main/resources/reference.conf | 12 ------------
.../apache/pekko/remote/artery/RemotingFlightRecorder.scala | 3 +--
.../pekko/remote/artery/RemotingFlightRecorderSpec.scala | 6 ++----
7 files changed, 7 insertions(+), 25 deletions(-)
diff --git a/README.md b/README.md
index 0ab7c67aa8..4a285bb50e 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ The CI build is Linux based (Ubuntu) and most Pekko
developers use Macs or Linux
## Using IntelliJ IDEA
-To use IntelliJ IDEA, you need to configure your project to use JDK 8. For a
visual guide, refer to this
[Q&A](https://github.com/apache/pekko/discussions/1847#discussioncomment-13166066).
+To use IntelliJ IDEA, you need to configure your project to use JDK 17. For a
visual guide, refer to this
[Q&A](https://github.com/apache/pekko/discussions/1847#discussioncomment-13166066).
- File > Project Structure > Project Settings > Project > Set your JDK to
version 17
- Settings > ... > Scala Compiler Server > Set your JDK to version 17
diff --git
a/actor-typed/src/main/scala/org/apache/pekko/actor/typed/internal/ActorFlightRecorder.scala
b/actor-typed/src/main/scala/org/apache/pekko/actor/typed/internal/ActorFlightRecorder.scala
index 163650e3bf..371ae67c83 100644
---
a/actor-typed/src/main/scala/org/apache/pekko/actor/typed/internal/ActorFlightRecorder.scala
+++
b/actor-typed/src/main/scala/org/apache/pekko/actor/typed/internal/ActorFlightRecorder.scala
@@ -70,8 +70,7 @@ private[pekko] trait ActorFlightRecorder extends Extension {
}
/**
- * JFR is only available under certain circumstances (JDK11 for now, possible
OpenJDK 8 in the future) so therefore
- * the default on JDK 8 needs to be a no-op flight recorder.
+ * JFR is only available under certain circumstances (but is usually available
since Java 9).
*
* INTERNAL
*/
diff --git a/docs/src/main/paradox/stream/operators/Source/asSubscriber.md
b/docs/src/main/paradox/stream/operators/Source/asSubscriber.md
index 0be82ceb1e..e19db56bd6 100644
--- a/docs/src/main/paradox/stream/operators/Source/asSubscriber.md
+++ b/docs/src/main/paradox/stream/operators/Source/asSubscriber.md
@@ -26,8 +26,7 @@ If the API you want to consume elements from provides a
@javadoc[Publisher](java
@@@ note
-For JDK 8 users: since
@javadoc[java.util.concurrent.Flow](java.util.concurrent.Flow) was introduced
in JDK version 9,
-if you are still on version 8 you may use the
[org.reactivestreams](https://github.com/reactive-streams/reactive-streams-jvm#reactive-streams)
library with @apidoc[Source.asSubscriber](Source$) {
scala="#asSubscriber[T]:org.apache.pekko.stream.scaladsl.Source[T,org.reactivestreams.Subscriber[T]]"
java="#asSubscriber()" }.
+Reactive Streams users: we prefer
@javadoc[java.util.concurrent.Flow](java.util.concurrent.Flow) you may still
use the
[org.reactivestreams](https://github.com/reactive-streams/reactive-streams-jvm#reactive-streams)
library with @apidoc[Source.asSubscriber](Source$) {
scala="#asSubscriber[T]:org.apache.pekko.stream.scaladsl.Source[T,org.reactivestreams.Subscriber[T]]"
java="#asSubscriber()" }.
@@@
diff --git a/docs/src/main/paradox/stream/operators/Source/fromPublisher.md
b/docs/src/main/paradox/stream/operators/Source/fromPublisher.md
index 7b7a131c5b..e41531e134 100644
--- a/docs/src/main/paradox/stream/operators/Source/fromPublisher.md
+++ b/docs/src/main/paradox/stream/operators/Source/fromPublisher.md
@@ -24,8 +24,7 @@ If the API you want to consume elements from accepts a
@javadoc[Subscriber](java
@@@ note
-For JDK 8 users: since
@javadoc[java.util.concurrent.Flow](java.util.concurrent.Flow) was introduced
in JDK version 9,
-if you are still on version 8 you may use the
[org.reactivestreams](https://github.com/reactive-streams/reactive-streams-jvm#reactive-streams)
library with @apidoc[Source.fromPublisher](Source$) {
scala="#fromPublisher[T](publisher:org.reactivestreams.Publisher[T]):org.apache.pekko.stream.scaladsl.Source[T,org.apache.pekko.NotUsed]"
java="#fromPublisher(org.reactivestreams.Publisher)" }.
+Reactive Streams users: we prefer
@javadoc[java.util.concurrent.Flow](java.util.concurrent.Flow) but you may
still use the
[org.reactivestreams](https://github.com/reactive-streams/reactive-streams-jvm#reactive-streams)
library with @apidoc[Source.fromPublisher](Source$) {
scala="#fromPublisher[T](publisher:org.reactivestreams.Publisher[T]):org.apache.pekko.stream.scaladsl.Source[T,org.apache.pekko.NotUsed]"
java="#fromPublisher(org.reactivestreams.Publisher)" }.
@@@
diff --git a/remote/src/main/resources/reference.conf
b/remote/src/main/resources/reference.conf
index 10b2de6200..2741292ad9 100644
--- a/remote/src/main/resources/reference.conf
+++ b/remote/src/main/resources/reference.conf
@@ -714,10 +714,6 @@ pekko {
# "TLS_AES_256_GCM_SHA384"]
# When doing rolling upgrades, make sure to include both the
algorithm used
# by old nodes and the preferred algorithm.
- # If you use a JDK 8 prior to 8u161 you need to install
- # the JCE Unlimited Strength Jurisdiction Policy Files to use AES
256.
- # More info here:
- #
https://www.oracle.com/java/technologies/javase-jce-all-downloads.html
enabled-algorithms = ["TLS_AES_128_GCM_SHA256",
"TLS_AES_256_GCM_SHA384"]
@@ -1199,10 +1195,6 @@ pekko {
# "TLS_AES_256_GCM_SHA384"]
# When doing rolling upgrades, make sure to include both the
algorithm used
# by old nodes and the preferred algorithm.
- # If you use a JDK 8 prior to 8u161 you need to install
- # the JCE Unlimited Strength Jurisdiction Policy Files to use AES
256.
- # More info here:
- #
https://www.oracle.com/java/technologies/javase-jce-all-downloads.html
enabled-algorithms = ["TLS_AES_128_GCM_SHA256",
"TLS_AES_256_GCM_SHA384"]
@@ -1273,10 +1265,6 @@ pekko {
# "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"]
# Example for TLSv1.3: ["TLS_AES_128_GCM_SHA256",
# "TLS_AES_256_GCM_SHA384"]
- # If you use a JDK 8 prior to 8u161 you need to install
- # the JCE Unlimited Strength Jurisdiction Policy Files to use AES
256.
- # More info here:
- #
https://www.oracle.com/java/technologies/javase-jce-all-downloads.html
enabled-algorithms = ["TLS_AES_128_GCM_SHA256",
"TLS_AES_256_GCM_SHA384"]
diff --git
a/remote/src/main/scala/org/apache/pekko/remote/artery/RemotingFlightRecorder.scala
b/remote/src/main/scala/org/apache/pekko/remote/artery/RemotingFlightRecorder.scala
index 928884277a..feb9708011 100644
---
a/remote/src/main/scala/org/apache/pekko/remote/artery/RemotingFlightRecorder.scala
+++
b/remote/src/main/scala/org/apache/pekko/remote/artery/RemotingFlightRecorder.scala
@@ -95,8 +95,7 @@ private[pekko] trait RemotingFlightRecorder extends Extension
{
}
/**
- * JFR is only available under certain circumstances (JDK11 for now, possible
OpenJDK 8 in the future) so therefore
- * the default on JDK 8 needs to be a no-op flight recorder.
+ * JFR is only available under certain circumstances (but is usually available
since Java 9).
*
* INTERNAL
*/
diff --git
a/remote/src/test/scala/org/apache/pekko/remote/artery/RemotingFlightRecorderSpec.scala
b/remote/src/test/scala/org/apache/pekko/remote/artery/RemotingFlightRecorderSpec.scala
index 9f57b56722..197165e157 100644
---
a/remote/src/test/scala/org/apache/pekko/remote/artery/RemotingFlightRecorderSpec.scala
+++
b/remote/src/test/scala/org/apache/pekko/remote/artery/RemotingFlightRecorderSpec.scala
@@ -15,7 +15,6 @@ package org.apache.pekko.remote.artery
import org.apache.pekko
import pekko.testkit.PekkoSpec
-import pekko.util.JavaVersion
import org.scalatest.matchers.should.Matchers
@@ -23,10 +22,9 @@ class RemotingFlightRecorderSpec extends PekkoSpec with
Matchers {
"The RemotingFlightRecorder" must {
- "use the no-op recorder by default when running on JDK 8" in {
+ "not use the no-op recorder by default" in {
val extension = RemotingFlightRecorder(system)
- if (JavaVersion.majorVersion < 11)
- extension should ===(NoOpRemotingFlightRecorder)
+ extension should !==(NoOpRemotingFlightRecorder)
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]