Community
Participate
Working Groups
Created attachment 269280 [details] Java project with which the problem can be reproduced It seems this was tracked with bug report 353472, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=353472. However with 4.6 I don't observe that all annotations are copied from the super method. An example of this is the @Before annotation for junit4, or e.g. @OverridingMethodsMustInvokeSuper. To reproduce 1. Import project from attached zip. 2. Open type SomeSub. 3. Generated code to override method someMethod. Observed behavior The following code is generated: @Override public void someMethod() { // TODO Auto-generated method stub super.someMethod(); } Desired behavior Since the super method has the @Before annotation, the generated method should have it as well. So the generated code, in this case, should be as follows: @Before @Override public void someMethod() { // TODO Auto-generated method stub super.someMethod(); } I can reproduce this with: Version: Neon.3+ (4.6.3) Build id: R20170220-0833
Looks like the fix for bug 353472 was reverted via bug 386410. :-( Looks like one can't either enable it by default for all, not disable by default for all without make someone angry. What about to enable this by default for a list of known annotations, which can be extended by user? By default we could have @Before @After etc in the list.