Bug 83161 Can't access public field from private subclass
Since I20050118 this code does not compile anymore. The access to 'publicField' is marked as 'not visible' public class A { private static class PrivateInner { public int publicField; } public static class PublicInner extends PrivateInner { } } class B { void foo(Object o) { A.PublicInner x; int i= ((A.PublicInner)o).publicField; int j= x.publicField; } } Also note the strange error range marked on the assignment to 'i'
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ChangeMethodSignatureProposal.java
SimpleName arg= ast.newSimpleName("x"); 
					newTagElement.fragments().add(arg);
					insertTabStop(rewrite, newTagElement.fragments(), "param_tagcomment" + i); 
					insertParamTag(rewrite.getListRewrite(javadoc, Javadoc.TAGS_PROPERTY), parameters, k, newTagElement);
					desc.resultingTagArg= arg; 
				} else {
					desc.resultingTagArg= null;
				}
			} else if (curr instanceof RemoveDescription) {
				SingleVariableDeclaration decl= (SingleVariableDeclaration) parameters.get(k);
				
				listRewrite.remove(decl, null);
				k++;
				
				TagElement tagNode= findParamTag(methodDecl, decl);
				if (tagNode != null) {
					rewrite.remove(tagNode, null);
				}
			} else if (curr instanceof EditDescription) {
				EditDescription desc= (EditDescription) curr;
				
				SingleVariableDeclaration decl= (SingleVariableDeclaration) parameters.get(k);
				SingleVariableDeclaration newNode= ast.newSingleVariableDeclaration();
				newNode.setType(imports.addImport(desc.type, ast));
				
				
				desc.resultingNode= newNode;
				hasCreatedVariables= true;
				
				rewrite.replace(decl, newNode, null);