You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Problem**
Build util-stats with Scala 3
**Solution**
# Change util-stats project settings.
# Compile project + test with Scala 3 migration flags
# Remove flags
# Fix incompatibilities
# Run cross-building tests
**Result**
//Auto-rewrite fixes://
Scala 3 requires parentheses around the parameter of a lambda:
- DelegatingStatsReceiverTest.scala
//Other fixes://
Method `filterKeys` in trait MapOps is deprecated,
should use .view.filterKeys:
- CachedRegex.scala
- CategorizingExceptionStatsHandlerTest.scala
- MultiCategorizingExceptionStatsHandlerTest.scala
`schemaKey` method must be called with `()`:
- InMemoryStatsReceiver.scala
Implicit conversion `long2float` in object Long is deprecated,
need to be explicit:
- Stat.scala
- InMemoryStatsReceiverTest.scala
- ExpressionSchemaTest.scala
Cannot access apply method of case classes without specifying
package:
- Expression.scala
Types in implicit definitions need to be given explicitly:
- DelegatingStatsReceiverTest.scala
Note:
`print` changed to `println` in InMemoryStatsReceiver.scala to account for a
Scala 3 bug where the split method does not work properly in string
interpolation with special symbols. See
https://jira.twitter.biz/browse/CSL-11259
JIRA Issues: CSL-11092
Differential Revision: https://phabricator.twitter.biz/D720514
0 commit comments