Skip to content

bump: scala to 2.13.17#32819

Closed
sebastian-alfers wants to merge 7 commits intoakka:mainfrom
sebastian-alfers:bump-scala
Closed

bump: scala to 2.13.17#32819
sebastian-alfers wants to merge 7 commits intoakka:mainfrom
sebastian-alfers:bump-scala

Conversation

@sebastian-alfers
Copy link
Contributor

No description provided.

@sebastian-alfers
Copy link
Contributor Author

Interesting. It seems that productHash became deprecated in 2.13.17. And the recommended method caseClassHash does not seem to exist in 3.3.4.

Copy link
Contributor

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but let's release 2.10.10 with some bug fixes before merging this bump

@sebastian-alfers
Copy link
Contributor Author

I would like to get rid of the added @nowarn("msg=deprecated") if possible. Do you have any idea?

object Compile {
// Compile

val scalaLibrary = "org.scala-lang" % "scala-library" % scala213Version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this be strange for Scala 3?

// store hashCode
@nowarn("msg=deprecated")
@transient override lazy val hashCode: Int = scala.util.hashing.MurmurHash3.productHash(this)
@transient override lazy val hashCode: Int = scala.util.hashing.MurmurHash3.caseClassHash(this)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's stay with the deprecated productHash. caseClassHash doesn't exist in earlier Scala library versions so if someone ends up running with earlier Scala version this will be a fatal error.

@johanandren
Copy link
Contributor

I'll pick this up in a new PR directly against the repo so we can verify the samples and native image are working right away.

@patriknw
Copy link
Contributor

@johanandren Can you also revert the change caseClassHash/productHash
#32819 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants