-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Refactor Bean property introspection #4532
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
Merged
cowtowncoder
merged 27 commits into
2.18
from
feature/2.18/4515-rewrite-prop-introspection
May 18, 2024
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
0186add
Start work on front-loading Creator detection
cowtowncoder 1b90882
Minor NPE fix
cowtowncoder 687d15a
Merge branch '2.18' into feature/2.18/4515-rewrite-prop-introspection
cowtowncoder 180fd92
Start solving some cases (explicit properties-based)
cowtowncoder 9008aee
More work on explicit creator detection
cowtowncoder 38c0d67
Bit more refactoring
cowtowncoder cbecdab
Comment out invalid test
cowtowncoder 77a87d8
Try to avoid bogus conflicts
cowtowncoder 5c24f74
Fix 4 more test cases
cowtowncoder e40740c
Getting there: resolved all but 1 of non-Record test cases
cowtowncoder 70d10e5
Fixes to tests, test mapper setup
cowtowncoder 312e0e9
Resolve most of Record test failures too
cowtowncoder f28a4f9
Fix one more Record test ("empty" Record)
cowtowncoder 46616bc
Merge branch '2.18' into feature/2.18/4515-rewrite-prop-introspection
cowtowncoder c5576cc
Merge branch '2.18' into feature/2.18/4515-rewrite-prop-introspection
cowtowncoder 4b59d64
Temporarily disable the one non-Record test that fails; tackle at a l…
cowtowncoder dc5dd2f
Merge branch '2.18' into feature/2.18/4515-rewrite-prop-introspection
cowtowncoder 77c1fb1
Fix 2 more Record tests; 5 to go
cowtowncoder 9e239f4
Resolve one failing case
cowtowncoder bbdbf61
Resolve 2 more fails; only 2 remain
cowtowncoder ef7db31
Merge branch '2.18' into feature/2.18/4515-rewrite-prop-introspection
cowtowncoder 324e4a2
Fix one more test (one fail remains!)
cowtowncoder 9d18c1a
Fix the last Record test!
cowtowncoder d7a5519
Minor tweaking
cowtowncoder 791e8fa
Last comment tweaks
cowtowncoder 2b52cd7
Renaming
cowtowncoder 0a054e0
Remove unused method
cowtowncoder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may be personal preference.
From here to line 766 seems like we can just end everything with...
And not mix up two different handling. So that is easier to make changes per case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I am sure there are ways to clean things up: at first I am trying to replicate existing logic. So once things pass will focus more on clean up.
Exciting thing is that right now I am 1 test fail away from passing all Java 8 tests -- then need to tackle record handling.
And once that happens, then start making use of Creators detected: right now all I have changed is finding properties-based Creators to link properties in
POJOPropertiesCollector
, butBasicDeserializerFactory
then re-scans everything. But that won't be necessary for long.... and need to figure out at what point to merge things to
master
. Probably half-way through, to keep diff manageable.But at least I am FINALLY making progress!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to mention that this part of code will definitely be rewritten as right now it is strictly duplicating existing handling, but once everything works as well as it used to, can and will start simplifying & cleaning up.