-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
javac Xlint removal warning in generated code #3546
Comments
"hides" isn't accurate right, in that its more that it produces "noise" and that noise distracts us away from other compiler warnings - isn't that the case?
I believe what you are suggesting is that if we remove the |
Yes, it was in the sense that noise makes it harder to see other real warnings.
Yes, in my case I am hoping that all warnings go away as soon as Once changed, if |
This method is effectively internal and called by generated code that also is Deprecated(forRemoval = true)
Note that this method does not exist on version 15.x, this is a 14.x specific issue. |
#3546 Reduce compiler warning on query bean generated code
I just updated the library and sadly I still have warnings for After some testing it seems like |
So the options are:
1. Remove the for removal from the @deprecated
2. See lots of compiler warnings
3. ??? ... is there a third option?
…On Tue, 11 Feb 2025, 12:30 am Jens Nehlmeier, ***@***.***> wrote:
I just updated the library and sadly I still have warnings for
TQAssocMany.filterMany() and all its implementations in query beans even
though the method is not called at all.
After some testing it seems like javac will produce the warning if you
simply have a method deprecated for removal in an interface and
implementations exist, even if you never call these methods.
—
Reply to this email directly, view it on GitHub
<#3546 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABTATKN5BPZ2FGIVD57HC32PCEU7AVCNFSM6AAAAABV6JU3HOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBXG4YTIMRTGM>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
|
That is probably not a bad option in this case. Deprecated since around August 2023 and has a good migration option to filterManyRaw(). So I'll look to prepare a PR for this. |
Refer #3558 |
I updated to latest ebean and now I have a pair of warnings for every query bean:
Warning: [removal] filterMany(String,Object...) in TQAssocMany....
Warning: [removal] _filterMany(String,Object...) in TQAssocBean....
I don't call these methods at all in my application code and it is pretty annoying now as it "hides" other, more important warnings.
I can see that
public filterMany
callsprotected _filterMany
and both are marked for removal. Maybe all warnings go away if_filterMany
would not be marked for removal? My impression is that I should only see a warning if I actually call a deprecated forRemoval method.The text was updated successfully, but these errors were encountered: