You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2026/07/05 22:43:48 UTC

[PR] fix: fix compilation warnings across Scala 2.13 and 3.3 cross-builds [pekko]

He-Pin opened a new pull request, #3297:
URL: https://github.com/apache/pekko/pull/3297

   ### Motivation
   Several compilation warnings were present across the codebase when building with `-Dpekko.allwarnings=true`:
   - `@SerialVersionUID does nothing on a trait` (Scala 3.3.8 changed the warning text from "has no effect" to "does nothing", causing existing `@nowarn` filters to miss)
   - Unchecked type tests for `IndexedSeq[Byte]` in ByteString and `InternalRecipientRef[Req]` in AskPattern (pattern match type erasure)
   - Unreachable case in TlsGraphStage (sealed trait `SslTlsOutbound` exhaustively matched)
   - Invalid `@nowarn` filter `cat=unused-params` in bench-jmh benchmark (not a valid Scala 3 category)
   
   ### Modification
   - Update all `@nowarn` message filters for `@SerialVersionUID` to use broader regex `(has no effect|does nothing)` matching both Scala 3.3 and older warning text (17 source locations + boilerplate template)
   - Add `@unchecked` annotation to type tests that can't be checked at runtime due to type erasure (ByteString `addAll`, AskPattern `ask`)
   - Change unreachable `case other =>` to `case null =>` in TlsGraphStage since the sealed trait match is exhaustive
   - Change invalid `@nowarn("cat=unused-params")` to `@nowarn("msg=never used")` in bench-jmh benchmark
   - Update boilerplate template for generated `Functions.scala`
   
   ### Result
   Clean compilation with zero Scala warnings on both Scala 2.13.18 and 3.3.8 with `-Dpekko.allwarnings=true`.
   
   ### Tests
   - `sbt -Dpekko.allwarnings=true "+test:compile"` - passes with no Scala warnings
   
   ### References
   None - code quality improvement


-- 
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-unsubscribe@pekko.apache.org

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


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


Re: [PR] fix: fix compilation warnings across Scala 2.13 and 3.3 cross-builds [pekko]

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #3297:
URL: https://github.com/apache/pekko/pull/3297


-- 
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-unsubscribe@pekko.apache.org

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


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