Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-releng-dev] 4.19 I-Build: I20210205-1800 - BUILD FAILED


On 6 Feb 2021, at 10:44, Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:


The idea of offering a default method in the interface was rejected as it is marked with @noimplements.
If we see that this causes issues for more projects, we can still add an empty default implementation.

> Wouldn’t it have been better to have an IResource2 interface instead which added the method, so that downstream users could provide it if they needed to?

With Java default methods in Interface the "old way" of new interfaces seem not the best way to handle API enhancements.

Thanks Lars, makes sense. I did wonder why having a default method wasn’t used, and I didn’t realise that IResource was @noimplement either.

For the mock test that implements the API it might make sense to bump the version of the dependency on o.e.c.resources to 3.14 


Alex

Back to the top