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
final case class First[A](getFirst: A) extends AnyVal
object First {
implicit def showInstance[A](implicit ev: Show[A]): Show[First[A]] = new Show[First[A]] {
override def show(f: First[A]): String = s"First(${ev.show(f.getFirst)})"
}
}
First("aString").show
here is the exact error:
[info] newts.FirstTest *** ABORTED ***
[info] java.lang.ClassFormatError: Duplicate method name&signature in class file newts/First$$anon$1
[info] at java.lang.ClassLoader.defineClass1(Native Method)
[info] at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
Now what's interesting is that the error disappear if you:
Confirmed it's not simulacrum. A possible work around at the cats side is to rename the show in ContravariantShow. In the meantime, @julienrf@sellout can you guys use the Show.show work around before next release?
Hi all,
When @sellout tried to upgrade newts (https://github.com/julien-truffaut/newts) from cats 0.9.0 to 1.0.0-MF, we started to experience
java.lang.ClassFormatError
when callingshow
on case class usingAnyVal
e.g.:here is the exact error:
Now what's interesting is that the error disappear if you:
Anyval
orShow.show
e.g.For precision, everything worked fine in 0.9.0
The text was updated successfully, but these errors were encountered: