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

feat: allow endpoints to work on non-public classes #9592

Merged
merged 4 commits into from
Dec 16, 2020

Conversation

tdq
Copy link
Contributor

@tdq tdq commented Dec 7, 2020

Fix sets accessible all public methods of endpoint which allows to call them even if class is not public.
Checked with Oracle documentation that fix supports java 12 (there was a doubt that it's not)
https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/lang/reflect/AccessibleObject.html

Fixes #8168

@CLAassistant
Copy link

CLAassistant commented Dec 7, 2020

CLA assistant check
All committers have signed the CLA.

@haijian-vaadin haijian-vaadin added the hilla Issues related to Hilla label Dec 8, 2020
joheriks
joheriks previously approved these changes Dec 10, 2020
haijian-vaadin
haijian-vaadin previously approved these changes Dec 11, 2020
Copy link
Contributor

@haijian-vaadin haijian-vaadin left a comment

Choose a reason for hiding this comment

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

Also looks good to me, ready to be merged once the conflicts are resolved.

@haijian-vaadin haijian-vaadin dismissed stale reviews from joheriks and themself via 2650b78 December 16, 2020 10:52
@vaadin-bot
Copy link
Collaborator

SonarQube analysis reported 1 issue

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MINOR VaadinConnectController.java#L257: Remove this use of "APPLICATION_JSON_UTF8_VALUE"; it is deprecated. rule

@haijian-vaadin haijian-vaadin changed the title Allow endpoints to work on non-public classes. feat: allow endpoints to work on non-public classes. Dec 16, 2020
@haijian-vaadin haijian-vaadin changed the title feat: allow endpoints to work on non-public classes. feat: allow endpoints to work on non-public classes Dec 16, 2020
@haijian-vaadin haijian-vaadin merged commit 4e3992a into vaadin:master Dec 16, 2020
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with platform 19.0.0. For prerelease versions, it will be included in its final version.

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

Successfully merging this pull request may close these issues.

@Endpoint should work on non-public classes
6 participants