Hi and welcome.

I would not consider JDK-8253396 (Please add `not()` method to `java.util.function.BiPredicate`) a good starter bug.

Generally, any bug that tries to add new APIs are hard, and require a lot of time and effort.

While the implementation of java.util.function.BiPredicate.not() is probably trivial, doing this task requires much more work:

* There should be some discussion if this feature is needed - this mailing list is the right place for that. * The method needs a well written specification, in form of a javadoc comment.
* Tests need to be written to ensure conformance with the specification.

This is my current understanding on how to add new APIs. If I am wrong, please correct me.

I would not recommend adding a new API as a starter bug. From my limited experience, great starter bugs are bugs where the wrong exception is thrown - they are easy to fix, but still require you to write additional tests.

But if you find a sponsor who helps you implement JDK-8253396, then go for it.

- Johannes


On 20-Mar-21 7:31, Suren Nihalani wrote:
Hi,

I am new openjdk (I've been using java for 7 years but I am new to
contributing to openjdk!). I was looking for interesting starter tasks to
help out with. JDK-8253396 looked like an easy to implement candidate. I am
open to other suggestions too (feel free to little r as well)!

The contribution guide suggested I socialize my change before I code it up.
Seems like the implementation would be straightforward and similar to
Predicate.java. Are folks okay with this change?

Thanks for looking into this!

Reply via email to