spray-json icon indicating copy to clipboard operation
spray-json copied to clipboard

optionFormat in v1.3.2 not compatible with optionFormat in v1.3.1

Open jkinkead opened this issue 9 years ago • 6 comments

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.

jkinkead avatar Jun 12 '15 16:06 jkinkead

Retaining the old signature as a non-implicit should fix this.

jkinkead avatar Jun 12 '15 16:06 jkinkead

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.

fommil avatar Jun 15 '15 09:06 fommil

Does spray-json use semantic versioning?

savulchik avatar Jun 22 '15 04:06 savulchik

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) ?

lcor1979 avatar Feb 02 '17 12:02 lcor1979

you could override the method in your context when using the 1.3.1 library

fommil avatar Feb 02 '17 13:02 fommil

or recompile either of the two mutually incompatible libraries

fommil avatar Feb 02 '17 13:02 fommil