Hi,
Have you tried
-keep class scala.collection.immutable.Set { *; }
?
Nick
On Thursday, April 24, 2014 5:25:23 PM UTC+1, Andrei Varanovich wrote:
>
> Hi all,
>
> this is less about scala itself, but rather about Proguard issue I have.
> I am using json4s JSON library and getting a weird exception while trying
> to de-serialize one of my objects.
>
> Could not find method scala.collection.immutable.Set.hashCode, referenced
> from method org.json4s.JsonAST$JObject.hashCode
> VFY: unable to resolve interface method 43131:
> Lscala/collection/immutable/Set;.hashCode ()I
>
> I tried to play with Proguard settings without any luck:
>
> -keep class scala.collection.immutable.ListSet { *; }
> -keep class * extends scala.collection.AbstractSet { *; }
> -keep interface scala.collection.immutable.** { *; }
>
> This line causes an exception
> https://github.com/json4s/json4s/blob/master/ast/src/main/scala/org/json4s/JsonAST.scala#L211
>
> Any ideas how to include a proper Set type into Proguard config?
>
> thanks,
> Andrei
>
--
You received this message because you are subscribed to the Google Groups
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.