mdedetrich commented on code in PR #2200:
URL: https://github.com/apache/pekko/pull/2200#discussion_r2346081120


##########
actor/src/main/scala/org/apache/pekko/japi/function/Function.scala:
##########
@@ -152,3 +152,10 @@ trait Creator[+T] extends Serializable {
   @throws(classOf[Exception])
   def create(): T
 }
+
+@nowarn("msg=@SerialVersionUID has no effect")
+@SerialVersionUID(1L)
+@FunctionalInterface
+trait IntFunction[T] extends Serializable {
+  def apply(value: Int): T

Review Comment:
   > The reason is in #2185, ok? Even Akka-sdk is now Java-first.
   
   If you are going to make a decision like move everything to Java (or to 
Scala) for that matter, you need to discuss it with community first. You can't 
just sneak it into PR's because you think its a good idea.
   
   Please discuss this with community first, also whether to throw an exception 
or not is a separate matter from whether functions can throw exceptions.



-- 
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: notifications-unsubscr...@pekko.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to