Bug 44035 [formatting] Error in formatting parts of java code snippets in comment
This is for build I20030930. The Java code formatter options are set to Format java code snippets. Taking the following comment: /** * The following is a Java snipet. * * <pre> * while ((size = availableSize(stream, size)) > 0) { * System.out.println("available"); * } * </pre> */ public void test() { } And trying to format it here is what we got: /** * The following is a Java snipet. * * <pre> * while ((size = availableSize(stream, size)) > 0) { * System.out.println("available"); } * </pre> */ public void test() { }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/ICommentAttributes.java
public static final int COMMENT_BLANKLINE= 1 << 1;
	
	public static final int COMMENT_BREAK= 1 << 2;
	
	public static final int COMMENT_CLOSE= 1 << 3;
	
	public static final int COMMENT_CODE= 1 << 4;
	
	public static final int COMMENT_HTML= 1 << 5;
	
	public static final int COMMENT_IMMUTABLE= 1 << 6;
	
	public static final int COMMENT_NEWLINE= 1 << 7;
	
	public static final int COMMENT_OPEN= 1 << 8;
	
	public static final int COMMENT_PARAGRAPH= 1 << 9;
	
	public static final int COMMENT_PARAMETER= 1 << 10;
	
	public static final int COMMENT_ROOT= 1 << 11;
	
	public static final int COMMENT_SEPARATOR= 1 << 12;
}