-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Bug: org.apache.pekko.dispatch.PekkoJdk9ForkJoinPool is not on the classpath #1729
Comments
Existing workaround: pekko/actor/src/main/scala/org/apache/pekko/dispatch/ForkJoinExecutorConfigurator.scala Lines 99 to 114 in d30e29d
|
The classpath of which module are you referring to? If this is about |
OR: |
I see no integration test for |
@pjfanning It's not I don't know how to write the code, but with the current setup, it can't be integrated tested, if you add an integration test for |
indeed the
But with the following change to build.sbt: lazy val actorTests = pekkoModule("actor-tests")
.configs(Jdk9.TestJdk9)
- .dependsOn(testkit % "compile->compile;test->test", actor)
+ .dependsOn(
+ actor % "compile->CompileJdk9;test->test",
+ testkit % "compile->compile;test->test"
+ ) ... it should work like I think you expect. |
Doesn't work too :( |
Interesting! In what way does it not work? How are you testing? |
with sbt console and java 21 I think it's because the result class is not been added to the class path. |
Hmm, that seems to work for me though. What if you check out https://github.com/raboof/pekko/pull/new/actor-tests-depend-on-jdk9-classes and then start sbt like this:
do you get a different result? |
The problem seems to happen when using submodules in this repo. If you use a project with a dependency on a pekko-actor snapshot jar or released jar, the class is there and is used if use Java version 11 up. The code is integration tested by our other modules like pekko-http. It would be nice if it was easier to test. |
Even the PekkoJdk9ForkJoinPool is on the final result jar, but it does not on the classpath.
How to reproduce:
I think that's maybe caused by of the
Jdk9.scala
The text was updated successfully, but these errors were encountered: