spray-json
spray-json copied to clipboard
optionFormat in v1.3.2 not compatible with optionFormat in v1.3.1
Code compiled against 1.3.1 will throw an exception trying to find optionFormat
if it's running using 1.3.2:
[error] Exception in thread "main" java.lang.NoSuchMethodError: spray.json.DefaultJsonProtocol$.optionFormat(Lspray/json/JsonFormat;)Lspray/json/StandardFormats$OptionFormat;
See this change for the offending signature update.
Retaining the old signature as a non-implicit should fix this.
I also believe there is a problem with using the type aliases here... the implicit resolver doesn't seem to be able to equate JF
and JsonFormat
so I end up overriding everything with the full name anyway.
Does spray-json use semantic versioning?
I am stuck with a library that use spray-json 1.3.1 and another one which need spray-json 1.3.3 and I have the error mentioned in this issue.
What should I concretely do to remove this incompatibility error (given that I'm a pretty newbie in scala) ?
you could override the method in your context when using the 1.3.1 library
or recompile either of the two mutually incompatible libraries