Bug 122501 [typing][content assist] Extra bracket gets generated as shown: System.out.println() )
In the Java IDE, after typing out System.out.println( and pressing SPACEBAR, on a fresh line, generates System.out.println() ) This happens only when the content-assist window pops up. On trying to edit the line again, the problem does not show up, as long as the content-assist window is not up again.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaMethodCompletionProposal.java
private boolean getCoreOption(IJavaProject project, String key, boolean def) {
			String option= getCoreOption(project, key);
			if (JavaCore.INSERT.equals(option))
				return true;
			if (JavaCore.DO_NOT_INSERT.equals(option))
				return false;
			return def;
		}
		private String getCoreOption(IJavaProject project, String key) {
			if (project == null)
				return JavaCore.getOption(key);
			return project.getOption(key, true);
		}
	}
	
	protected static final String LPAREN= "("; 
	protected static final String RPAREN= ")"; 
	protected static final String COMMA= ","; 
	protected static final String SPACE= " "; 
	private boolean fHasParameters;
	private boolean fHasParametersComputed= false;
	private int fContextInformationPosition;
	private FormatterPrefs fFormatterPrefs;
	public JavaMethodCompletionProposal(CompletionProposal proposal, JavaContentAssistInvocationContext context) {
		super(proposal, context);
	}
	public void apply(IDocument document, char trigger, int offset) {
		super.apply(document, trigger, offset);
		if (needsLinkedMode()) {
			setUpLinkedMode(document, ')');