-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Implement bean property generation #10557
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
Conversation
Yes, we should decide what we support before getting this in I think. It can be tested using separate compilation tests: in |
I decided to change the way how Right now the compiler will correctly report an error if some generated accessor would clash with existing def. However, I wasn't able to test that behavior with the Lastly, I've added filtering of synthetic accessors as simply not adding them to the class scope during the unpickling. I have no idea if this is the right way of achieving that but it seems to work and it requires checking each def only once. |
Can you push a commit demonstrating this? I can have a look at it. |
I have pushed it. Now, as I look at this, my guess is that the test framework is differentiating between normal errors and exceptions during post-phase checks. Should I add explicit checks for name clashes? |
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.
Otherwise LGTM!
Co-authored-by: Guillaume Martres <smarter@ubuntu.com>
Fixes #10322.
This PR adds bean property accessors generation to the
PostTyper
phase of the compilation.This is a draft as it needs some automated tests, but I wanted to get some feedback earlier.
Open questions:
Abstract
andOverride
.