| Summary: | [pull up] Forced to make private fields public when pulling method to interface | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | generateui <rtimon> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | deepakazad, Olivier_Thomann, pwebster, remy.suen |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
Moving to JDT/UI I cannot reproduce this. Please provide a code snippet to reproduce the problem. Please reopen if you have a test case. |
Build Identifier: M20100211-1343 Prerequisites: have a class implement an interface. Try to pull up a method in the class to the implemented interface. Eclipse will then mark all fields used in the method as public when they are marked private. This will not happen when fields are marked protected. Reproducible: Always Steps to Reproduce: 1.Right click method 2. Refactor 3. Pull Up 4. Select interface to pull to 5. Execute 6. Notice warning ("Eclipse needs to mark fields as public") 7. Notice former private fields are now public.