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/GenericJavaTypeProposal.java
* </p>
	 *
	 * @param subType the sub type
	 * @param superType the super type
	 * @return an inheritance path from <code>superType</code> to
	 *         <code>subType</code>, or <code>null</code> if
	 *         <code>subType</code> does not inherit from
	 *         <code>superType</code>
	 * @throws JavaModelException
	 */
	private IType[] computeInheritancePath(IType subType, IType superType) throws JavaModelException {
		if (superType == null)
			return null;
		
		if (superType.equals(subType))
			return new IType[] { subType };
		ITypeHierarchy hierarchy= subType.newSupertypeHierarchy(getProgressMonitor());
		if (!hierarchy.contains(superType))
			return null; 
		List path= new LinkedList();
		path.add(superType);
		do {
			
			superType= hierarchy.getSubtypes(superType)[0];
			path.add(superType);
		} while (!superType.equals(subType)); 
		return (IType[]) path.toArray(new IType[path.size()]);
	}
	private NullProgressMonitor getProgressMonitor() {
		return new NullProgressMonitor();