| Summary: | [content assist] Incorrect parameter autonaming when overriding method | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Randy Hudson <hudsonr> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | daniel_megert, noelgrandin |
| Version: | 3.4.1 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Randy Hudson
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. |