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

Improve Java6 compatibility #71

Merged
merged 2 commits into from
Jul 22, 2018
Merged

Conversation

varahash
Copy link
Contributor

Fixes #66

Unknown object reader is required for deserializing e.g. Map<String, Object> type.
} catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e);
}
args -> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was converting lambdas to anonymous classes because Android was complaining about them. Shouldn't Android work now even without desugaring?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since 'dsl-json-java8' contains java8 byte code the desugaring is required.

return settings
public static <T> DslJson.Settings<T> withAnalyzers() {
return new DslJson.Settings()
.resolveReader(UNKNOWN_READER)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you need unknown reader for some use case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mentioned that in commit message. Unknown object reader is required for deserializing e.g. Map<String, Object> type.

@zapov zapov merged commit d70e702 into ngs-doo:master Jul 22, 2018
@varahash varahash deleted the java6-compatibility branch July 24, 2018 16:22
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

Successfully merging this pull request may close these issues.

None yet

2 participants