Converts a Reporter
to a function type that prior to the ScalaTest 1.
Converts a Reporter
to a function type that prior to the ScalaTest 1.5 release the
Reporter
extended.
Prior to ScalaTest 1.5, Reporter
extended function type (Event) => Unit
.
This inheritance relationship was severed in 1.5 to make it possible to implement Reporter
s in Java, a request by an IDE
vendor to isolate their ScalaTest integration from binary incompatibility between different Scala/ScalaTest releases.
To make a trait easily implementable in Java, it needs to have no concrete methods. Reporter
itself does not declare
any concrete methods, but Function1
does.
This implicit conversion was added in ScalaTest 1.5 to avoid breaking any source code that was actually using
Reporter
as an (Event) => Unit
function. It is unlikely anyone was actually doing that, but if you were
and now get the deprecation warning, please email scalatest-users@googlegroups.com if you believe this implicit conversion should
be retained. If no one steps forward with a compelling justification, it will be removed in a future version of ScalaTest.
See the documentation for Reporter.convertReporterToFunction for information
Companion object to Reporter that holds a deprecated implicit conversion.