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

Allows @Param value in default contract to be taken from param names. #1309

Merged
merged 1 commit into from Dec 21, 2020

Conversation

krzyk
Copy link
Contributor

@krzyk krzyk commented Nov 12, 2020

JEP 118 introduced javac option -parameters that adds to bytecode
method parameter names, so if code is compiled with that option
and @param value is empty we can get that template parameter name
from method parameter name.

Fixes #1297.

@krzyk krzyk force-pushed the friendly-params branch 2 times, most recently from 57afd73 to 4c2a14b Compare November 13, 2020 10:38
Copy link
Member

@kdavisk6 kdavisk6 left a comment

Choose a reason for hiding this comment

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

Simple enough. Thank you for this. If you could please update the Readme with this documentation?

@kdavisk6 kdavisk6 added documentation Issues that require updates to our documentation feedback provided Feedback has been provided to the author labels Nov 22, 2020
JEP 118 introduced javac option `-parameters` that adds to bytecode
method parameter names, so if code is compiled with that option
and @param value is empty we can get that template parameter name
from method parameter name.

Fixes OpenFeign#1297.
@krzyk
Copy link
Contributor Author

krzyk commented Nov 24, 2020

@kdavisk6 I've updated the README.md

@kdavisk6 kdavisk6 added the ready to merge Will be merged if no other member ask for changes label Nov 24, 2020
@krzyk
Copy link
Contributor Author

krzyk commented Dec 2, 2020

@kdavisk6 Can this be merged? Builds are passing and I would like to use it in my project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues that require updates to our documentation feedback provided Feedback has been provided to the author ready to merge Will be merged if no other member ask for changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support JEP 118 parameters
2 participants