Community
Participate
Working Groups
Build ID: 3.4.1 Steps To Reproduce: I'm overriding Figure#getPreferredSize(int, int) in a subclass. In both the superclass (Figure), and in the interface declaring the method (IFigure), the method is defined as: public Dimension getPreferredSize(int wHint, int hHint) But when the "override template" is generated, I get: public Dimension getPreferredSize(int hint, int hint2) Why are the params named "hint" and "hint2"? It seems like some heuristic somewhere has decided that single letters followed by an uppercase letter should be ignored (as with field names used by convention in some platform plug-ins). That might make sense if I were doing a refactor->Extract method, but this should be a straightforward copy-down of the method signature. I think I've also seen this when sub-classing SWT classes containing similar param names. More information: I don't know if this is relevant, but the override was being done within a nested class. I can provide specific source code if you can't reproduce.
Move to JDT/UI
Are the methods in source or binary? If binary, is the source attached? > I can provide specific source code if you can't reproduce. That would be good.
> Are the methods in source or binary? If binary, is the source attached? Binary with source attached. > > I can provide specific source code if you can't reproduce. > That would be good. Steps to reproduce: 1) Create a new class extending org.eclipse.swt.widgets.Layout 2) Look at the computeSize method.
This works for me using I20090129-1800. I get: protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache)
I'm using 3.4.1, both as my IDE and as my eclipse target.
I can confirm that the test case that Randy reported is fixed in 3.5. But I'm still getting parameter name munging happening. If I create an interface like so: public interface MyInterface { void myMethod(long lMinTriggerPeriod_usec; } and then use content-assist when implementing my class, I get: public class MyClass implements MyInterface { public void myMethod(long lMinTriggerPeriodUsec) { // TODO Auto-generated method stub } } Note the munging of "_usec" to "Usec". Thanks.
I'm marking this bug as WORKSFORME and filed bug 283539 for issue mentioned in the previous comment.