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
final CommentRegion parent= getParent();
		final String start= getStartingPrefix().trim();
		final String end= getEndingPrefix().trim();
		final String content= getContentPrefix().trim();
		final int lines= parent.getSize();
		final CommentRange range= getFirst();
		int offset= 0;
		int postfix= 0;
		String text= parent.getText(range.getOffset(), range.getLength());
		if (line == 0) {
			offset= text.indexOf(start);
			if (offset >= 0) {
				offset += start.length();
				range.trimBegin(offset);
				postfix= text.lastIndexOf(end);
				if (postfix > offset)
					range.setLength(postfix - offset);
				else {
					postfix= text.lastIndexOf(content);
					if (postfix >= offset) {
						range.setLength(postfix - offset);
						parent.setBorder(BORDER_UPPER);
						if (postfix > offset) {
							text= parent.getText(range.getOffset(), range.getLength());
							final IRegion region= trimLine(text, content);
							range.move(region.getOffset());
							range.setLength(region.getLength());
						}
					}
				}