-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Java][Jersey2] Java6 compatibility broken in ApiClient using diamond operator without generic type inference #517
Comments
Thank you a lot for this issue! I will try to look into it. |
I have proposed a PR: #560 |
Nice. Much more encompassing than my suggested fix. I'll retract my PR in light of yours. Thanks! |
@jason-cohen I am really sorry not having seen that you were working on this too. |
@jcohen-stingray the PR has been merged. Let us know if you still see issues. FYI. I'm preparing tests to better catch the issue moving forward. |
UPDATE: I've filed #568 with a travis.yml file to catch the issue moving forward. |
Description
ApiClient.mustache template for method invokeApi() uses return statements that do not conform to java 6 compatibility. Return statements should include generic type in method definition. Every other class generated with the java-jersey2 generator is java6 compatible with regards to diamond operators.
openapi-generator version
3.0.3
OpenAPI gradle task specification
Steps to reproduce
Suggest a fix/enhancement
The file ApiClient.mustache, add generic type to the 3 return statements of the method invokeApi():
Lines 712 through 717.
The text was updated successfully, but these errors were encountered: