Bug 51654 [formatting] formatter removes last line with block comments
The formatter seems to remove anything contained on the line with the end block comment. before formating: example: /* style.process( xmlinput, new XSLTResultTarget(response.getWriter())); */ After formating: /* * style.process( xmlinput, */ If I put the end block comment on the next line if format properly. I am using all the default settings for 3.0M6
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/MultiCommentLine.java
int tag= ++index;
					while (index < length && content.charAt(index) != HTML_TAG_POSTFIX && content.charAt(index) != HTML_TAG_PREFIX)
						index++;
					if (index < length && content.charAt(index) == HTML_TAG_POSTFIX && isValidTag(content.substring(tag, index))) {
						index++;
						attribute |= COMMENT_HTML; 
					} else {
						
						index= tag;
						while (index < length && !Character.isWhitespace(content.charAt(index)) && content.charAt(index) != HTML_TAG_PREFIX && !content.startsWith(LINK_TAG_PREFIX, index))
							index++;
					}
				} else if (content.startsWith(LINK_TAG_PREFIX, index)) {
					while (index < length && content.charAt(index) != LINK_TAG_POSTFIX)
						index++;
					if (index < length && content.charAt(index) == LINK_TAG_POSTFIX)
						index++;
					attribute |= COMMENT_OPEN | COMMENT_CLOSE;
				} else {
					while (index < length && !Character.isWhitespace(content.charAt(index)) && content.charAt(index) != HTML_TAG_PREFIX && !content.startsWith(LINK_TAG_PREFIX, index))
						index++;
				}
			}
			if (index - offset > 0) {
				result= new CommentRange(begin + offset, index - offset);
				result.setAttribute(attribute);
				parent.append(result);
				offset= index;
			}