MINOR: Upgrade Scala for Java 20/21 support#13840
Conversation
|
JDK 8 and 17 builds passed, 11 is queued. |
|
Hi @ijuma from the release notes:
I don't think we are hitting those, but I just wanted to make sure we are aware of these before merging. |
There was a problem hiding this comment.
Hi @ijuma thanks for this patch.
I found a shorter way to make the test compile (and run successfully). One needs to type the replicaManager variable in line 2481:
val replicaManager: ReplicaManager = new ReplicaManager(
But anyway, your patch LGTM 👍 (given the tests complete, it seems JDK 11 and Scala 2.13 got aborted)
|
I triggered the build again |
| time: Time, | ||
| threadNamePrefix: Option[String], | ||
| replicationQuotaManager: ReplicationQuotaManager): ReplicaFetcherManager = { | ||
| val rm = this |
There was a problem hiding this comment.
do we want to replace "this" in the line below with rm?
There was a problem hiding this comment.
It doesn't make a difference since it's before the scope of the inner class of ReplicaFetcherManager is created, but I made this change for clarity.
jolshan
left a comment
There was a problem hiding this comment.
left one small comment. Tests seem to be looking better.
|
Thanks for the reviews. A couple of responses.
Yes, I saw that note but didn't seem like a blocker for us.
Interesting - I tried that originally and it didn't work for me. In any case, the fact that we were referring to |
I agree. Thanks @ijuma |
|
JDK 11 build passed, there were two unrelated failures outside of that:
|
This change bumps scala version to 2.13.12 and cherry-picks squashed combination of the following commits (only scala-related changes): dfaae31 MINOR: Upgrade Scala for Java 20/21 support (apache#13840) 6ae08c4 KAFKA-14256: Upgrade from Scala 2.13.8 to 2.13.10 (apache#12675) 7c2d672 MINOR: Update library dependencies (Q1 2022) (apache#11306) a8bd649 MINOR: Update Scala to 2.13.6 (apache#10711) dd34e40 MINOR: Update Scala to 2.13.5 (apache#10169) cbf8ad2 MINOR: Upgrade to Scala 2.13.4 (apache#9643) 7f90a58 MINOR: Update Scala to 2.13.3 (apache#8931)
Upgrade to Scala 2.13.11 and Scala 2.12.18. A minor test change was required
to fix compilation with Scala 2.13.11.
Scala 2.13 release notes:
Scala 2.12 release notes:
Committer Checklist (excluded from commit message)