Bug 96748 [content assist] invalid positioning of parameter hints
build 200505250010 1) have the following code snippet class A { boolean method1(String arg1, String arg2) { return true; } boolean method2() { return method1("dsds",); } } 2) invoke content assist at directly after the opening '(' in the method1 call --> parameter hint comes up, OK 3) move caret behind the ',' --> parameter hint updates, highlighting the second parameter, OK 4) invoke content assist --> new parameter hint comes up, incorrectly placed and incorrectly initialized
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProcessor.java
return Character.isJavaIdentifierPart((char) curr) || Character.isJavaIdentifierStart((char) curr);
	}
	private int guessContextInformationPosition(ITextViewer viewer, int offset) {
		int contextPosition= offset;
		IDocument document= viewer.getDocument();
		try {
			JavaCodeReader reader= new JavaCodeReader();
			reader.configureBackwardReader(document, offset, true, true);
			int nestingLevel= 0;
			int curr= reader.read();
			while (curr != JavaCodeReader.EOF) {
				if (')' == (char) curr)
					++ nestingLevel;
				else if ('(' == (char) curr) {
					-- nestingLevel;
					if (nestingLevel < 0) {
						int start= reader.getOffset();
						if (looksLikeMethod(reader))
							return start + 1;
					}
				}
				curr= reader.read();
			}
		} catch (IOException e) {
		}
		return contextPosition;
	}
	private List addContextInformations(ITextViewer viewer, int offset) {
		ICompletionProposal[] proposals= internalComputeCompletionProposals(viewer, offset);
		List result= new ArrayList();