mdedetrich commented on PR #2555:
URL: https://github.com/apache/pekko/pull/2555#issuecomment-3649847725

   > I'm not sure why we can't keep some of the old methods. People have 
probably been using them and they cause no harm. 100%, let's add extra Java DSL 
methods that better support Pure Java alternatives but Scala Future is not an 
awful API for Java users.
   
   Its not awful but its entirely redundant given `CompletionStage` exists. Its 
useful to provide context here, the only reason why `Future` is exposed to Java 
users in the first place (ignoring oversights) is that Akka predates JVM 1.8 
which is when `CompletionStage` was added to JVM stdlib.
   
   So yes in a world where Java doesn't have `CompletionStage` there is merit, 
but that is no longer the case here and hasn't been in a while and the only 
reason these methods sat there for so long is because Akka sat at 2.x for so 
long and they couldn't break the API. We are breaking the API now, this is no 
longer an issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to