Bug 46341 [formatting][implementation] comment line length not correctly applied
(1105 nightly build) when formatting the declaration below, with all default code formatter options (i.e. comment line length = 80), the last word '<code>String</code>' is not correctly moved to anotherline, leaving the last line longer than 80 characters (about 87 characters i think..) /** * Sets the set of identifiers to active activities. * * @param activeActivityIds * the set of identifiers to active activities. This set may be * empty, but it must not be <code>null</code>. If this set * is not empty, it must only contain instances of <code>String</code>. */ void setActiveActivityIds(Set activeActivityIds);
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/CommentRegion.java
} catch (Exception exception) {
				
			}
			margin= Math.max(COMMENT_PREFIX_LENGTH + 1, margin - stringToLength(indentation) - COMMENT_PREFIX_LENGTH);
			tokenizeRegion();
			markRegion();
			wrapRegion(margin);
			formatRegion(indentation, margin);
		}
		return fResult;
	}
	/**
	 * Formats this comment region.
	 * 
	 * @param indentation
	 *                   The indentation of this comment region
	 * @param width
	 *                   The maximal width of text in this comment region measured in
	 *                   average character widths
	 */
	protected void formatRegion(final String indentation, final int width) {
		final int last= fLines.size() - 1;
		if (last >= 0) {
			CommentLine previous= null;
			CommentLine next= (CommentLine)fLines.get(last);
			CommentRange range= next.getLast();
			next.formatLowerBorder(range, indentation, width);
			for (int line= last; line >= 0; line--) {
				previous= next;
				next= (CommentLine)fLines.get(line);