Community
Participate
Working Groups
In some of my classes, I'm getting an error after a clean+build, but not after an incremental build: @NonNullByDefault public interface MyInterface { Set<String> get(); } @NonNullByDefault public class MyClass implements MyInterface { Set<String> get() { ... } } The return type of the method in MyClass produces the following error: "The return type is incompatible with '@NonNull Set<String>' return from MyInterface.get() (mismatching null constraints)" Similar to https://bugs.eclipse.org/bugs/show_bug.cgi?id=473818, this bug only appears after cleaning+rebuilding the project, and only for a few classes. It disappears when making a trivial change, and invoking the incremental compiler by saving it. Just like with the mentioned bug, I'm not able to reproduce this problem in a separate project :( The problems only seems to happen for parameterized return types. Also, if one implementation of an interface shows this problem, then all other implementations show it, too, at the same method.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.