-
Notifications
You must be signed in to change notification settings - Fork 125
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
[Question] field access from inside the class on a @set field #477
Comments
Ah, good catch! Yes, using
@var @set(Protected) String name; Anyhow, I'll make that change as well for tonight's release. Thanks for reporting this! |
No problem. Glad to share my perspective. So from what I'm gathering I found this behavior when trying to use Lombok's At first I thought that it was a bug when Lombok and Manifold interacted, but after analyzing the code further I saw that this strict behavior was actually intended functionality up until now. I think that the strictness could be useful in some situations, but in the majority of cases the ability to access a field from inside the class is probably preferred. Maybe adding a The same could be true for |
Fix available with release 2023.1.18. Thanks for reporting this! |
- support abstract enum methods
Should I put the strict parameter stuff in a separate feature request? |
That would be great. Thanks! |
Done. See mention above |
I noticed that you can't even access field that is annotated with
@set
from inside the class. Is this intentional behavior? Does this mean that I will always have to mark fields that I want to use inside the class with@get(Private)
as well?If that's the case, then what even is the purpose of the
@set
annotation without a@get(...)
annotation, an abstract modifier or an explicit method implementation?Is there a way (like with some kind of configuration) to make it so that using
@set
will implicitly add@get(Private)
as well? Alternatively, is there a way to turn off rewriting field access/assignment to getters for fields in that same class (likethis.fieldname
)?The text was updated successfully, but these errors were encountered: