Getting the below compiler error . reference to get is ambiguous both method get(akka.actor.ActorSystem) in akka.http.javadsl.Http and method get(akka.actor.ActorSystem) in akka.http.javadsl.Http match
Hi Ramiya, this is a known issue, we are working on getting that fixed.
Some related issues:
Note that Java 11 is not quite officially supported yet, there may be more things hiding there, especially if you are also on top of Lagom which pulls in more third party libraries than vanilla Akka.
We thought it was solved in the upcoming 2.5.18 release but we have just discovered it also has problems, albeit potentially different problems (IntelliJ and Eclipse finding the overload ambigous but not the compiler).
Can’t give you any estimate, we will need to wait for a new Scala release before we get this fixed. There is a workaround noted in a comment in https://github.com/akka/akka-http/issues/2211 but it requires adding some Scala code to your project and calling that instead of the extension directly, so it’s not ideal.