Project: JDT
Bug 51001 prefix parameter [code manipulation]
Reported: 2004-01-30 16:53:41 | Status: resolved fixed

When implementing a methode or overriding a methode the prefixes of the parametersnames are wrongly changed. In the preferences I put an,a,some as prefix for parameters interface: public interface iTestInterFace { public void foo( String aParameter, Integer anInteger ) ; } when I implement this interface I get ( auto generated ): public class TestImplementation implements iTestInterFace { /* (non-Javadoc) * @see iTestInterFace#doStuff(java.lang.String, java.lang.Integer) */ public void foo( String someParameter, Integer someAnInteger ) { ^^^^ ^^^^^^ // TODO Auto-generated method stub } } When I extend this class and use override/implent methode from the source menu I get : public class TestExtender extends TestImplementation { /* (non-Javadoc) * @see iTestInterFace#foo(java.lang.String, java.lang.Integer) */ public void foo( String someSomeParameter, Integer someSomeAnInteger ) { ^^^^^^^^ ^^^^^^^^^^ // TODO Auto-generated method stub super.foo( someSomeParameter, someSomeAnInteger ); } } I would like that if the parameter starts with one of the prefixes that it is not changed. I use Eclipse Version: 3.0.0 Build id: 200401290841

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java