New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
=sbt Bump Scala version to 2.12.17 & 2.13.10, sbt to 1.7.2 #31648
Conversation
b7b4221
to
4294f24
Compare
[10-09 04:53:37.035] [error] /home/runner/work/akka/akka/akka-actor-tests/src/test/scala/akka/util/ByteIteratorSpec.scala:19:23: a type was inferred to be `AnyVal`; this may indicate a programming error.
[10-09 04:53:37.035] [error] freshIterator().indexOf(0x20) should be(0) and [10-09 04:53:38.583] [error] /home/runner/work/akka/akka/akka-actor-tests/src/test/scala/akka/util/ByteStringSpec.scala:634:24: a type was inferred to be `AnyVal`; this may indicate a programming error.
[10-09 04:53:38.583] [error] ByteString.empty.indexOf(5) should ===(-1) @SethTisue cc. |
I commented on the linked ticket that
Previously, the warning was incorrectly dropped. Maybe something like this will silence the warning only in
My next guess:
I wasn't successful at suppressing, but I'm a mere student of |
Thanks @som-snytt for the detail hint. |
@@ -67,7 +67,7 @@ object AkkaDisciplinePlugin extends AutoPlugin { | |||
"akka-stream-tests-tck", | |||
"akka-testkit") | |||
|
|||
val defaultScalaOptions = "-Wconf:cat=unused-nowarn:s,any:e" | |||
val defaultScalaOptions = "-Wconf:cat=unused-nowarn:s,cat=lint-infer-any:s,any:e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to workaround the new linter.
@@ -23,7 +24,7 @@ private[akka] trait Children { this: ActorCell => | |||
|
|||
import ChildrenContainer._ | |||
|
|||
@nowarn("msg=never used") | |||
@nowarn("msg=never") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To work both in 2.12 and 2.13, or should this be just @nowarn
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to use explicit message in case something else comes up later. Shorter never
is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's never updated
now and in 2.12 it's never used
.
When compile with java 8 deprecate |
@@ -23,7 +24,7 @@ private[akka] trait Children { this: ActorCell => | |||
|
|||
import ChildrenContainer._ | |||
|
|||
@nowarn("msg=never used") | |||
@nowarn("msg=never") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to use explicit message in case something else comes up later. Shorter never
is fine.
@@ -48,7 +48,9 @@ object JdkOptions extends AutoPlugin { | |||
targetSystemJdk, | |||
jdk8home, | |||
fullJavaHomes, | |||
Seq(if (scalaVersion.startsWith("3.")) "-Xtarget:8" else "-target:jvm-1.8"), | |||
if (scalaVersion.startsWith("3.")) Seq("-Xtarget:8") | |||
else if (scalaVersion.startsWith("2.13.")) Seq("-release", "8") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where can I read about the reason for this change?
It's somewhat scary given the below comment "-release 8' is not enough, for some reason we need the 8 rt.jar"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In scala/scala#9982, I have compiled it with jdk 11 and checked the bytecode, is there anything I missed out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. All good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @He-Pin
The regression is fixed.
Draft release note of 2.13.10 : scala/scala-dev#820
Before: #31615