I am migrating an application from Java 8 to Java 11.
I compiled my app with Java 11 and ran it in VM with Java 11.
The Akka verison is 2.3.15.
When I run my app in Java 11 environment, I see the following exception at runtime:
java.lang.IllegalArgumentException: cannot use non-static local Creator to create actors; make it static (e.g. local to a static method) or top-level
at akka.actor.Props$.create(Props.scala:112) ~[akka-actor_2.11-2.3.15.jar:?]
at akka.actor.Props.create(Props.scala) ~[akka-actor_2.11-2.3.15.jar:?]
I also tried compiling with Java 8 and running in Java 11 environment, I see the same exception.
Does it have something to do with using Java 11? Do I have to upgrade the Akka version?