Bug 45465 [formatting] New Formatter does not respect non javadoc @tags lines
For example, given a javadoc with tags that are not recognized, (i.e., xdoclet tags for instance): /** * @hibernate.set * lazy="true" * table="GUJArticleCategorization" * cascade="save-update" * @hibernate.collection-key * column="articleId" * @hibernate.collection-many-to-many * class="br.com.guj.model.Category" * column="categoryId" * * @return categorias deste artigo */ public Category getCategory() { return this.category; } After reformatting: /** * @hibernate.set lazy="true" table="GUJArticleCategorization" * cascade="save-update" @hibernate.collection-key column="articleId" * @hibernate.collection-many-to-many class="br.com.guj.model.Category" * column="categoryId" * * @return categorias deste artigo */ public Category getCategory() { return this.category; } Everything in a single line until it reachs the line size limit And there is NO option that can prevent this reformat. XDoclet will not recognize tags like this, if there is some text before them! Tested in M4. linux motif and winXP
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/JavaDocRegion.java
/*****************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation