Community
Participate
Working Groups
If I write a junit test: assertFalse(moo()); Then use Ctrl-1 to autogenerate the moo method, it will generate one with return type String. This will have a compile error on the assertFalse line, as there is no such method. I can see why it's doing it - there's an assertFalse method with signature String, boolean, but I think that 'Create Method', should, given a choice, pick the method signature that will compile without further changes - ie return type boolean.
Move to JDT/UI
*** This bug has been marked as a duplicate of 69471 ***