Skip to content

Instantly share code, notes, and snippets.

@seratch
Created October 18, 2016 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seratch/feea260204db7800ff7538e54fff2874 to your computer and use it in GitHub Desktop.
Save seratch/feea260204db7800ff7538e54fff2874 to your computer and use it in GitHub Desktop.
jsno4s for Scala 2.10 compilation failure with sbt 0.13.12 or higher
[error] /Users/kazuhirosera/github/oss/json4s/core/src/main/scala/org/json4s/Extraction.scala:614: type mismatch;
[error] found : org.json4s.reflect.TypeInfo
[error] required: org.json4s.TypeInfo
[error] (which expands to) org.json4s.reflect.TypeInfo
[error] if(deserializer.isDefinedAt((typeInfo, key))) {
[error] ^
[error] /Users/kazuhirosera/github/oss/json4s/core/src/main/scala/org/json4s/Extraction.scala:615: type mismatch;
[error] found : org.json4s.reflect.TypeInfo
[error] required: org.json4s.TypeInfo
[error] (which expands to) org.json4s.reflect.TypeInfo
[error] deserializer((typeInfo, key))
[error] ^
[error] /Users/kazuhirosera/github/oss/json4s/core/src/main/scala/org/json4s/Formats.scala:394: constructor cannot be instantiated to expected type;
[error] found : org.json4s.reflect.org.json4s.reflect.TypeInfo
[error] required: org.json4s.reflect.(some other)org.json4s.reflect.TypeInfo
[error] case (TypeInfo(Class, _), json) =>
[error] ^
[error] /Users/kazuhirosera/github/oss/json4s/core/src/main/scala/org/json4s/Formats.scala:408: constructor cannot be instantiated to expected type;
[error] found : org.json4s.reflect.org.json4s.reflect.TypeInfo
[error] required: org.json4s.reflect.(some other)org.json4s.reflect.TypeInfo
[error] case (TypeInfo(Class, _), json) =>
[error] ^
[error] four errors found
[error] (json4s-core/compile:compileIncremental) Compilation failed
[error] Total time: 30 s, completed Oct 19, 2016 7:43:48 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment