Bug 74504 Close parenthesis option does no longer work
Using build I200409212000. Although "Close brackets and parenthesis" option is not checked, when I type "if(" in Java editor, it add automatically the closing parenthesis and then I get "if ()" I've tried to set/unset it to see whether it could be a wrong initialization after build update but it did not change anything... Problem does not happen with brackets: when I type "char[" it does not close it automatically...
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
if (range != null)
						newElementLine= document.getLineOfOffset(range.getOffset());
				}
				if (newElementLine == -1)
					newElementLine= document.getLineOfOffset(getOffset(newElement));
				if (newElementLine == -1)
					return -1;
				int newLine= fLine + newElementLine - fElementLine;
				if (newLine < 0 || newLine >= document.getNumberOfLines())
					return -1;
				int maxColumn= document.getLineLength(newLine);
				String lineDelimiter= document.getLineDelimiter(newLine);
				if (lineDelimiter != null)
					maxColumn= maxColumn - lineDelimiter.length();
				int offset;
				if (fColumn > maxColumn)
					offset= document.getLineOffset(newLine) + maxColumn;
				else
					offset= document.getLineOffset(newLine) + fColumn;
				return offset;
			} catch (BadLocationException e) {
				
				JavaPlugin.log(e);
				return -1;
			} catch (JavaModelException e) {
				
				JavaPlugin.log(e.getStatus());
				return -1;
			}
		}