History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-19561
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Dmitry Jemerov
Reporter: Alexey Pegov
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Move class to upper level should change constructor access specifier if needed

Created: 30 Jul 07 13:32   Updated: 02 Aug 08 18:20
Component/s: Refactoring
Fix Version/s: Diana 8650

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-16705 "Move inner class to upper level" doe... Resolved

Build: 7,099
Fixed in build: 8,643
Severity: Medium


 Description  « Hide
public class Upper {
  public Object doSomething() {
    return new Inner(100);
  }

  private static class Inner { // private !!!
    private Inner(final int i) {
    }
  }
}

move Inner to upper level will broke the code, cause private constructor will not be available in Upper class anymore.



 All   Comments   Work Log   Change History      Sort Order:
Sascha Weinreuter - 08 Sep 07 18:30
The visibillity of the class itself should be escalated as well when moving the the inner class to another package.