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

   ### Motivation
   
   The Scala 3.3.8 compiler introduced the `-Yfuture-lazy-vals` flag 
([scala/scala3-lts#637](https://github.com/scala/scala3-lts/pull/637)) to 
optionally use `VarHandle` instead of `sun.misc.Unsafe` for lazy val 
implementation. This prepares libraries for upcoming JDK releases that restrict 
`sun.misc.Unsafe` access.
   
   ### Modification
   
   - Add `-Yfuture-lazy-vals` to `Common.scala` scalacOptions, conditionally 
applied for Scala 3.3.x:
     ```scala
     (if (scalaVersion.value.startsWith("3.3")) Seq("-Yfuture-lazy-vals") else 
Seq.empty)
     ```
   - Bump Scala 3 version from 3.3.7 to 3.3.8 in:
     - `project/Dependencies.scala`
     - `sbt-plugin/src/sbt-test/scala3/01-basic-client-server/build.sbt`
     - `sbt-plugin/src/sbt-test/scala3/02-scala3-sourcegen/build.sbt`
     - `.github/workflows/build-test.yml`
     - `.github/workflows/publish-nightly.yml`
     - `.github/workflows/stage-release-candidate.yml`
   
   ### Result
   
   pekko-grpc's Scala 3 build uses the future-proof `VarHandle`-based lazy val 
implementation, compatible with all JDK 9+ versions.
   
   ### Tests
   
   - `sbt "++3.3.8; runtime/compile"` — passed (exit 0, 230s)
   
   ### References
   
   Refs scala/scala3-lts#637


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