Skip to content

ArrowAssoc warning in Scala 3.10 #1409

Description

@xuwei-k

Play JSON Version (2.5.x / etc)

  • 3.1.0-M10
  • 3.0.6

API (Scala / Java / Neither / Both)

Scala

Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)

all

JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)

all

Library Dependencies

Expected Behavior

no warning

Actual Behavior

[warn]   6 |  val f = play.api.libs.json.Json.format[A]
[warn]     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[warn]     |method ArrowAssoc in object Predef is deprecated since 3.10.0: Use `->` extension method instead.
[warn]     |---------------------------------------------------------------------------
[warn]     |Inline stack trace
[warn]     |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[warn]     |This location contains code that was inlined from JsMacroImpl.scala:713
[warn]     |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[warn]     |This location contains code that was inlined from JsMacroImpl.scala:713
[warn]      ---------------------------------------------------------------------------
[warn] one warning found

Reproducible Test Case

build.sbt

scalaVersion := "3.10.0-RC1"

libraryDependencies += "org.playframework" %% "play-json" % "3.1.0-M10"

scalacOptions += "-deprecation"

A.scala

package example

case class A(x: Int)

object A {
  val f = play.api.libs.json.Json.format[A]
}

Note

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions