Skip to content

Commit

Permalink
Update scala3-library to 3.3.4 (#1506)
Browse files Browse the repository at this point in the history
* Update scala3-library to 3.3.4

* correctly determine logger class for Scala 3.3.4 stacktraces

Co-Authored-By: Wojciech Mazur <[email protected]>

---------

Co-authored-by: scala-steward-asf[bot] <147768647+scala-steward-asf[bot]@users.noreply.github.com>
Co-authored-by: Arnout Engelen <[email protected]>
Co-authored-by: Wojciech Mazur <[email protected]>
  • Loading branch information
3 people authored Oct 7, 2024
1 parent b8c3dbe commit fd9a0a4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,21 @@ private[pekko] object LoggerClass {
if (!skip(name)) suitableClass = OptionVal.Some(clazz)
idx += 1
}
suitableClass.getOrElse(default)
suitableClass match {
case OptionVal.Some(cls) =>
// Fix start
val lambdaClsOwner = for {
nextCaller <- trace.lift(idx)
nextName = nextCaller.getName()
lambdaNameIdx = nextName.indexOf("$$Lambda$")
if nextName.startsWith(cls.getName()) && lambdaNameIdx > 0
lambdaClsOwner = nextName.substring(0, lambdaNameIdx)
} yield Class.forName(lambdaClsOwner)
// TODO: can potentially guard for ClassNotFoundException, but seems unlikely
lambdaClsOwner.getOrElse(cls)
case _ =>
default
}
} catch {
case NonFatal(_) => default
}
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object Dependencies {

val scala212Version = "2.12.20"
val scala213Version = "2.13.14"
val scala3Version = "3.3.3"
val scala3Version = "3.3.4"
val allScalaVersions = Seq(scala213Version, scala212Version, scala3Version)

val reactiveStreamsVersion = "1.0.4"
Expand Down

0 comments on commit fd9a0a4

Please sign in to comment.