Bug 25927 No doc/help on synthetic accessor method warning
In Java code, what does the following warning mean, how would I fix it and why should I care: Access to enclosing method aMethodName(...) from the type aTypeName is emulated by a synthetic accessor method. Thank you, Gary
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java
public static void addMethodRequiresBodyProposals(ICorrectionContext context, List proposals) throws CoreException {
		ICompilationUnit cu= context.getCompilationUnit();
		AST ast= context.getASTRoot().getAST();
		
		ASTNode selectedNode= context.getCoveringNode();
		if (!(selectedNode instanceof MethodDeclaration)) {
			return;
		}
		MethodDeclaration decl=  (MethodDeclaration) selectedNode;
		
		ASTRewrite rewrite= new ASTRewrite(decl);
		
		MethodDeclaration modifiedNode= ast.newMethodDeclaration();
		modifiedNode.setConstructor(decl.isConstructor());
		modifiedNode.setExtraDimensions(decl.getExtraDimensions());
		modifiedNode.setModifiers(decl.getModifiers() & ~Modifier.ABSTRACT);
		rewrite.markAsModified(decl, modifiedNode);		
		
		Block body= ast.newBlock();
		decl.setBody(body);
		rewrite.markAsInserted(body);
		String label= CorrectionMessages.getString("ModifierCorrectionSubProcessor.addmissingbody.description"); 
		Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);
		ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, cu, rewrite, 3, image);
		proposal.ensureNoModifications();
		proposals.add(proposal);
	}
	
}