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
}
		} else if (line == lines - 1) {
			offset= text.indexOf(content);
			if (offset >= 0) {
				range.trimBegin(offset + 1);
				if (text.startsWith(end, offset))
					range.setLength(0);
				else {
					postfix= text.lastIndexOf(end);
					if (postfix > offset) {
						range.trimEnd(-end.length());
						text= parent.getText(range.getOffset(), range.getLength());
						final IRegion region= trimLine(text, content);
						if (region.getOffset() != 0 || region.getLength() != text.length()) {
							range.move(region.getOffset());
							range.setLength(region.getLength());
							parent.setBorder(BORDER_UPPER);
							parent.setBorder(BORDER_LOWER);
						}
					}
				}
			}
		} else {
			offset= text.indexOf(content);
			if (offset >= 0) {
				offset += content.length();
				range.trimBegin(offset);
			}
		}
	}