Skip to content

DATACMNS-1079 Make ClassGeneratingPropertyAccessorFactory Java 9 aware #224

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

Closed
wants to merge 3 commits into from

Conversation

schauder
Copy link
Contributor

@schauder schauder commented Jun 2, 2017

@schauder schauder requested a review from mp911de June 2, 2017 08:00
schauder added 2 commits June 2, 2017 13:55
…are.

ClassGenerationPropertyAccessFactory does not work with Java 9 (without --permit-illegal-access), because making ClassLoader.defineClass accessible fails.

Therefore this change moves call to setAccessible to the check that ensures availability of the method.
Refactored all the checks done to check if ClassGeneratingProperty works into separate methods, so the body of isSupported becomes nice and readable.
@schauder schauder force-pushed the issue/DATACMNS-1079 branch from 4a5f287 to bead289 Compare June 2, 2017 12:05
mp911de pushed a commit that referenced this pull request Jun 2, 2017
…s encapsulated.

ClassGeneratingPropertyAccessorFactory does not work with Java 9 (encapsulated modules, without --permit-illegal-access), because making ClassLoader.defineClass accessible fails.

Therefore this change moves call to setAccessible to the check that ensures availability of the method so isSupported(…) returns false.

Original pull request: #224.
mp911de pushed a commit that referenced this pull request Jun 2, 2017
Refactored all the checks done to check if ClassGeneratingPropertyAccessorFactory works into separate methods, so the body of isSupported becomes nice and readable.

Original pull request: #224.
mp911de added a commit that referenced this pull request Jun 2, 2017
Remove javadoc params without documentation. Reorder methods in the order they are called. Rename arePropertyHashCodesUnique to hasUniquePropertyHashCodes. Add author tag. Formatting.

Original pull request: #224.
@mp911de
Copy link
Member

mp911de commented Jun 2, 2017

That's merged and polished now.

@mp911de mp911de closed this Jun 2, 2017
@mp911de mp911de deleted the issue/DATACMNS-1079 branch June 2, 2017 14:58
Aloren pushed a commit to Aloren/spring-data-commons that referenced this pull request Jun 20, 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.

2 participants