Alert: org.scala-lang.modules:scala-java8-compat-0.8.0-RC1 breaks lift-json

24 views
Skip to first unread message

Andreas Joseph Krogh

unread,
May 20, 2016, 3:23:06 AM5/20/16
to lif...@googlegroups.com
Hi all.
 
Just wanted to give a heads-up that scala-java8-compat-0.8.0-RC1 breaks lift-json.
 
Stuff that used to serialize just fine now cases this Exception:
 
scala.MatchError: this$ (of class java.lang.String)
        at net.liftweb.json.Meta$Reflection$.net$liftweb$json$Meta$Reflection$$clean$1(Meta.scala:240)
        at net.liftweb.json.Meta$Reflection$$anonfun$4.apply(Meta.scala:244)
        at net.liftweb.json.Meta$Reflection$$anonfun$4.apply(Meta.scala:244)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
        at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
        at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:35)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
        at scala.collection.AbstractTraversable.map(Traversable.scala:104)
        at net.liftweb.json.Meta$Reflection$.argsInfo$1(Meta.scala:244)
        at net.liftweb.json.Meta$Reflection$.constructorArgs(Meta.scala:260)
        at net.liftweb.json.Meta$Reflection$.net$liftweb$json$Meta$Reflection$$findMostComprehensive$1(Meta.scala:273)
        at net.liftweb.json.Meta$Reflection$$anonfun$primaryConstructorArgs$1.apply(Meta.scala:276)
        at net.liftweb.json.Meta$Reflection$$anonfun$primaryConstructorArgs$1.apply(Meta.scala:276)
        at net.liftweb.json.Meta$Memo.memoize(Meta.scala:206)
        at net.liftweb.json.Meta$Reflection$.primaryConstructorArgs(Meta.scala:276)
        at net.liftweb.json.Extraction$.decompose(Extraction.scala:88)
        at net.liftweb.json.Extraction$$anonfun$1.applyOrElse(Extraction.scala:91)
        at net.liftweb.json.Extraction$$anonfun$1.applyOrElse(Extraction.scala:89)
        at scala.collection.immutable.List.collect(List.scala:295)
        at net.liftweb.json.Extraction$.decompose(Extraction.scala:89)
        at net.liftweb.json.Extraction$$anonfun$1.applyOrElse(Extraction.scala:91)
        at net.liftweb.json.Extraction$$anonfun$1.applyOrElse(Extraction.scala:89)
        at scala.collection.immutable.List.collect(List.scala:303)
        at net.liftweb.json.Extraction$.decompose(Extraction.scala:89)
        at net.liftweb.json.Extraction$$anonfun$decompose$4.apply(Extraction.scala:85)
        at net.liftweb.json.Extraction$$anonfun$decompose$4.apply(Extraction.scala:85)
        at scala.Option.flatMap(Option.scala:171)
        at net.liftweb.json.Extraction$.decompose(Extraction.scala:85)
        at net.liftweb.json.Extraction$$anonfun$1.applyOrElse(Extraction.scala:91)
        at net.liftweb.json.Extraction$$anonfun$1.applyOrElse(Extraction.scala:89)
        at scala.collection.immutable.List.collect(List.scala:303)
        at net.liftweb.json.Extraction$.decompose(Extraction.scala:89)
        at no.officenet.origo.frontend.lift.components.calendar.CalendarUtil$.no$officenet$origo$frontend$lift$components$calendar$CalendarUtil$$$anonfun$121(CalendarUtil.scala:282)
 
 
Anyone else can confirm this?
 
Reverting to using scala-java8-compat-0.7.0 makes things OK again.
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963

Antonio Salazar Cardozo

unread,
May 20, 2016, 12:03:36 PM5/20/16
to Lift
Looks like it's not matching a regex that we were expecting it to match? Presumably
this$ is not a thing that that regex will match, and is a parameter name that Scala
would never generate, while scala-java8-compat does.

Haven't double-checked it though, sorry.
Thanks,
Antonio
Reply all
Reply to author
Forward
0 new messages