pjfanning opened a new issue, #2002: URL: https://github.com/apache/pekko/issues/2002
Pekko build is set up to fail if we get compile warnings. Scala nightly 2.13.17-bin-6a23d33 pekko-actor but there could be more in other modules ``` [error] /Users/pj.fanning/code/pekko/actor/src/main/scala-2.13/org/apache/pekko/util/ByteString.scala:184:15: Calls to parameterless method toArray will be easy to mistake for calls to final override def toArray[B >: Byte](implicit arg0: scala.reflect.ClassTag[B]): Array[B], which has a single implicit parameter list. [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=lint-overload, site=org.apache.pekko.util.ByteString.ByteString1C [error] final class ByteString1C private (private val bytes: Array[Byte]) extends CompactByteString { [error] ^ [error] /Users/pj.fanning/code/pekko/actor/src/main/scala-2.13/org/apache/pekko/util/ByteString.scala:315:15: Calls to parameterless method toArray will be easy to mistake for calls to final override def toArray[B >: Byte](implicit arg0: scala.reflect.ClassTag[B]): Array[B], which has a single implicit parameter list. [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=lint-overload, site=org.apache.pekko.util.ByteString.ByteString1 [error] final class ByteString1 private (private val bytes: Array[Byte], private val startIndex: Int, val length: Int) [error] ^ [error] /Users/pj.fanning/code/pekko/actor/src/main/scala-2.13/org/apache/pekko/util/ByteString.scala:547:15: Calls to parameterless method toArray will be easy to mistake for calls to final override def toArray[B >: Byte](implicit arg0: scala.reflect.ClassTag[B]): Array[B], which has a single implicit parameter list. [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=lint-overload, site=org.apache.pekko.util.ByteString.ByteStrings [error] final class ByteStrings private (private[pekko] val bytestrings: Vector[ByteString1], val length: Int) [error] ^ [error] /Users/pj.fanning/code/pekko/actor/src/main/scala-2.13/org/apache/pekko/util/ByteString.scala:922:29: Calls to parameterless method toArray will be easy to mistake for calls to final override def toArray[B >: Byte](implicit arg0: scala.reflect.ClassTag[B]): Array[B], which has a single implicit parameter list. [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=lint-overload, site=org.apache.pekko.util.ByteString [error] protected[ByteString] def toArray: Array[Byte] = toArray[Byte] [error] ^ [error] /Users/pj.fanning/code/pekko/actor/src/main/scala-2.13/org/apache/pekko/util/ByteString.scala:1160:23: Calls to parameterless method toArray will be easy to mistake for calls to final override def toArray[B >: Byte](implicit arg0: scala.reflect.ClassTag[B]): Array[B], which has a single implicit parameter list. [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=lint-overload, site=org.apache.pekko.util.CompactByteString [error] sealed abstract class CompactByteString extends ByteString with Serializable { [error] ^ [error] /Users/pj.fanning/code/pekko/actor/src/main/scala/org/apache/pekko/actor/Address.scala:78:79: method productHash in object MurmurHash3 is deprecated (since 2.13.17): use `caseClassHash` instead [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=deprecation, site=org.apache.pekko.actor.Address.hashCode, origin=scala.util.hashing.MurmurHash3.productHash, version=2.13.17 [error] @transient override lazy val hashCode: Int = scala.util.hashing.MurmurHash3.productHash(this) [error] ^ [error] 6 errors found [error] (actor / Compile / compileIncremental) Compilation failed ``` -- 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.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