Gatherer API : wildcards complaint
Viktor Klang
viktor.klang at oracle.com
Wed Jan 17 16:49:01 UTC 2024
Hi Rémi,
Thank you for the feedback―examples would be much appreciated!
Cheers,
√
Viktor Klang
Software Architect, Java Platform Group
Oracle
________________________________
From: core-libs-dev <core-libs-dev-retn at openjdk.org> on behalf of Remi Forax <forax at univ-mlv.fr>
Sent: Wednesday, 17 January 2024 16:55
To: core-libs-dev <core-libs-dev at openjdk.java.net>
Subject: Gatherer API : wildcards complaint
Hello,
this is a minor complaint but I do not see a raison to not getting this right.
Currently the Gatherer API does not use the wildcard correctly, which is not fully an issue because there is "enough" wildcards that if you rely on the inference, it will work.
The problem is that when you write code, you make mistakes and usually when you have a typing issue, a way to debug it is to fix the type arguments de-activating the inference.
But because there are some missing wildcards, this debugging strategy just fail flat with more typing errors.
I think that fixing the missing wildcards will hep users (or a least me) to have a better experience when using the Gatherer API.
I can help and propose a PR if you want.
regards,
Rémi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240117/48fded14/attachment.htm>
More information about the core-libs-dev
mailing list