xuwei-k opened a new issue, #1056:
URL: https://github.com/apache/pekko-http/issues/1056

   
   ## Steps
   
   ### build.sbt 
   
   ```scala
   scalaVersion := "3.8.4"
   
   val pekkoVersion = "2.0.0-M3"
   
   libraryDependencies ++= Seq(
     "org.apache.pekko" %% "pekko-actor-typed" % pekkoVersion,
     "org.apache.pekko" %% "pekko-stream" % pekkoVersion,
     "org.apache.pekko" %% "pekko-http" % "2.0.0-M1"
   )
   
   scalacOptions += "-deprecation"
   ```
   
   ### project/build.properties 
   
   ```properties
   sbt.version=1.12.11
   ```
   
   
   ### A.scala 
   
   ```scala
   import org.apache.pekko.http.scaladsl.model.HttpRequest
   import org.apache.pekko.http.scaladsl.model.AttributeKeys
   
   class A {
     def b(request: HttpRequest) = 
request.attribute(AttributeKeys.remoteAddress)
   }
   ```
   
   ## Problem
   
   ```
   [warn] 5 |  def b(request: HttpRequest) = 
request.attribute(AttributeKeys.remoteAddress)
   [warn]   |                                                                   
           ^
   [warn]   |Usage of implicit method attributeKey defined in object 
JavaMapping, which is not accessible here. In Scala 3.10, this implicit will no 
longer be found.
   ```
   
   ## Note
   
   - https://github.com/scala/scala3/pull/25608
   - https://github.com/scala/scala3/pull/25516
   


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