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
final String name= binding.getName();
		if (binding.isWildcardType()) {
			String contextName= name.replaceFirst("\\?", parameter.getElementName()); 
			if (binding.isUpperbound())
				
				return new TypeArgumentProposal(binding.getBound().getName(), true, contextName);
			
			return new TypeArgumentProposal("Object", true, contextName); 
		}
		if (binding.isTypeVariable()) {
			final ITypeBinding[] bounds= binding.getTypeBounds();
			if (bounds.length == 1)
				return new TypeArgumentProposal(bounds[0].getName(), true, name);
			return new TypeArgumentProposal(name, true, name);
		}
		
		return new TypeArgumentProposal(name, false, name);
	}
	/**
	 * Computes one 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>. Note that there may be
	 * more than one inheritance path - this method simply returns one.
	 * <p>
	 * The returned array contains <code>superType</code> at its first index,
	 * and <code>subType</code> at its last index. If <code>subType</code>
	 * equals <code>superType</code>, an array of length 1 is returned
	 * containing that type.