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

fix(#2210): log a warning if a final method is skipped when generating client proxies and subclasses #2644

Merged
merged 1 commit into from
May 30, 2019

Conversation

machi1990
Copy link
Member

Fixes #2210

@mkouba

Copy link
Contributor

@mkouba mkouba left a comment

Choose a reason for hiding this comment

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

Otherwise looks good!

@machi1990
Copy link
Member Author

Otherwise looks good!

Thanks for the review. Comments addressed.

if (Modifier.isStatic(method.flags()) || Modifier.isFinal(method.flags()) || Modifier.isPrivate(method.flags())) {
short flags = method.flags();
String className = method.declaringClass().name().toString();
if (Modifier.isFinal(flags) && !className.startsWith("java.")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, is there actually a reason to skip the message for JDK classes?

Copy link
Member Author

Choose a reason for hiding this comment

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

To keep the logs to a minimum user related stuffs.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok makes sense. User can define a producer for a JDK class but it's probably reasonable.

@mkouba mkouba merged commit 626f99a into quarkusio:master May 30, 2019
@machi1990 machi1990 deleted the 2210 branch May 30, 2019 13:12
@gsmet gsmet added this to the 0.16.0 milestone Jun 3, 2019
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.

Log a warning if a final method is skipped when generating client proxies and subclasses
3 participants