Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jkinkead opened this issue Jun 12, 2015 · 6 comments
Open

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

jkinkead opened this issue Jun 12, 2015 · 6 comments

Comments

@jkinkead
Copy link

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
Copy link
Author

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

@fommil
Copy link
Contributor

fommil commented Jun 15, 2015

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.

@savulchik
Copy link

Does spray-json use semantic versioning?

@lcor1979
Copy link

lcor1979 commented Feb 2, 2017

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

@fommil
Copy link
Contributor

fommil commented Feb 2, 2017

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

@fommil
Copy link
Contributor

fommil commented Feb 2, 2017

or recompile either of the two mutually incompatible libraries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants