Bug 25870 Code assist for comments doesn't add new line character.
Eclipse's code assist for comment and javadoc doesn't add a line feed character to the second line of comment, it adds only carriage return character. Since other editors do not treat carriage return itself as a line feed, line nubmers for the source will appear differently between eclipse and other editors. HOW TO REPRODUCE: 1. In java file, type /** then press enter. eclipse will add the following to the source. /** * comment */ 2. Open this file with a different editor: vi, emacs, etc. You will see your comment looking like this instead... /** * comment */ 3. line number for your source after this comment will appear differently between eclipse editor and any other editor.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocAutoIndentStrategy.java
private static String createSeeTagLink(IMethod method) {
		final StringBuffer buffer= new StringBuffer();	
		
		buffer.append(JavaModelUtil.getFullyQualifiedName(method.getDeclaringType()));
		buffer.append('#');
		buffer.append(method.getElementName());
		buffer.append('(');
		String[] parameterTypes= method.getParameterTypes();
		for (int i= 0; i < parameterTypes.length; i++) {
			if (i > 0)
				buffer.append(", "); 
			buffer.append(Signature.getSimpleName(Signature.toString(parameterTypes[i])));
		}
		buffer.append(')');
		return buffer.toString();
	}
	/**
	 * Appends a single javadoc tag line to the string buffer.
	 */
	private static void appendJavaDocLine(StringBuffer buffer, String preFix, String token, String name, String postFix) {
		buffer.append(preFix);
		buffer.append(" * "); 
		buffer.append('@');
		buffer.append(token);
		buffer.append(' ');
		buffer.append(name);
		buffer.append(postFix);		
	}
		
}