Bug 114360 [templates][content assist] Template completion proposal in javadoc inserts a '<' and duplicates last character
I20051025-0800 + ZRH plugins from 20051028_1210 - Select a word in a javadoc comment - press Ctrl+Space => a '<' is inserted (common prefix?) - select the <code></code> proposal => the template is correctly applied, but the last character of the original selection is (wrongly) added to the end of the inserted proposal
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/TemplateProposal.java
} catch (TemplateException e1) {
				fSelectedRegion= fRegion;
				return;
			}
			int start= getReplaceOffset();
			int end= getReplaceEndOffset();
			end= Math.max(end, offset);
			
			IDocument document= viewer.getDocument();
			String templateString= templateBuffer.getString();
			document.replace(start, end - start, templateString);
			
			LinkedModeModel model= new LinkedModeModel();
			TemplateVariable[] variables= templateBuffer.getVariables();
			MultiVariableGuess guess= fContext instanceof CompilationUnitContext ? ((CompilationUnitContext) fContext).getMultiVariableGuess() : null;
			boolean hasPositions= false;
			for (int i= 0; i != variables.length; i++) {
				TemplateVariable variable= variables[i];
				if (variable.isUnambiguous())
					continue;
				LinkedPositionGroup group= new LinkedPositionGroup();
				int[] offsets= variable.getOffsets();
				int length= variable.getLength();
				LinkedPosition first;
				if (guess != null && variable instanceof MultiVariable) {
					first= new VariablePosition(document, offsets[0] + start, length, guess, (MultiVariable) variable);
					guess.addSlave((VariablePosition) first);
				} else {
					String[] values= variable.getValues();
					ICompletionProposal[] proposals= new ICompletionProposal[values.length];