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

   ## Summary
   
   - Fix context bound patterns throughout the routing DSL to work with Scala 
3.8's context parameter changes: replace explicit passing of `Tuple.yes`, `ev`, 
`OutIsTuple`, `ClassTag` with implicit vals in scope
   - Replace `private[this]` with `private` (~37 files) and `= _` with explicit 
defaults (~47 files)
   - Update build config: move `-Ywarn-dead-code`/`-Xlint` to Scala 2-only, add 
`-Wconf` suppressions for Scala 3, make `-language:_` conditional, replace 
`-Xfatal-warnings` with `-Werror`
   
   ## Details
   
   ### Context bound fixes
   - `Directive.scala`: ConjunctionMagnet, or, validatedMap, tmap, tcollect, 
Directive0Support
   - `PathMatcher.scala`: provide, apply, Matched case class construction
   - `PathDirectives.scala`: rawPathPrefix, pathSuffix (tprovide with explicit 
type param)
   - `FutureDirectives.scala`: OnSuccessMagnet (Tuple import fix for 
scala.Tuple shadowing)
   - `HttpMessage.scala`: getHeaders ClassTag
   - `RejectionHandler.scala` (javadsl): ClassTag with server.Rejection type 
annotation
   - `PoolInterface.scala`, `StageLoggingWithOverride.scala`: LogSource context 
bounds
   - `TestRouteResult.scala`, `RouteTest.scala`: ClassTag context bounds
   
   ### Test code fixes
   - `HttpHeaderParserSpec.scala`: refutable pattern in val → asInstanceOf
   - `EntityStreamingSpec.scala`: context parameter passing via implicit vals
   
   ### Build config fixes
   - `project/Common.scala`: Scala 2/3 conditional scalacOptions, -Wconf 
suppressions
   - `build.sbt`: conditional `-language:_`, `-Werror` in docs
   - `DontLeakActorsOnFailingConnectionSpecs.scala`, `MultiNodeConfig.scala`: 
Logging fixes
   
   Verified: all modules compile cleanly on Scala 3.8.4 (zero errors) while 
maintaining full compatibility with Scala 2.13.18 and 3.3.8.
   
   ## Test plan
   - [x] `sbt "++ 3.8.4; Test/compile"` passes with zero errors
   - [x] `sbt "++ 3.3.8; http/compile"` passes with zero errors
   - [x] No changes to Scala version in Dependencies.scala (only forward-compat 
source changes)


-- 
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