| Summary: | Pulling up a method results in misplaced & inappropriate access modifier keyword [refactoring] | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Antonio D'souza <eclipse> |
| Component: | UI | Assignee: | Adam Kiezun <akiezun> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | ian |
| Version: | 2.0 | ||
| Target Milestone: | 2.1 M5 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Antonio D'souza
i guess you mean that:
1. you have:
package p;
public class A{
}
package p1;
import p.A;
public class A1 extends A{
/** field javadoc*/
protected int f;
/** method javadoc*/
int getF() {
return f;
}
}
2. you pull up field and method and get:
package p;
public class A{
/** field javadoc*/
protected int f;
protected /** method javadoc*/
int getF() {
return f;
}
}
package p1;
import p.A;
public class A1 extends A{
}
and not the expected:
package p;
public class A{
/** field javadoc*/
protected int f;
/** method javadoc*/
public int getF() {
return f;
}
}
package p1;
import p.A;
public class A1 extends A{
}
Indeed, that is precisely what I mean. *** Bug 21229 has been marked as a duplicate of this bug. *** 'protected' before the comment does look bogus let's fix it for m5 |