Eclipse 3.0 code formatter ruining xdoclet attributes

From: David JH (davidjh_at_gmail.com)
Date: 07/28/04

  • Next message: Michael Amling: "Re: New: Sun Fire V40z Server"
    Date: 28 Jul 2004 14:45:33 -0700
    
    

    When using Eclipse 3.0 I find that the code formatter reformats
    xdoclet attributes. Specifically it does not identify them as
    javadocs and so formats them as if they were part of a sentence,
    putting many on one line.

    This causes xdoclet to incorrectly parse some xdoclet attributes,
    specifically with regard to entity beans. For example:

            /**
             * @ejb.pk-field
             * @ejb.persistent-field
             * @ejb.interface-method
             */

            public abstract Integer getSomeId();

    becomes reformatted to:

       /**
         * @ejb.pk-field @ejb.persistent-field @ejb.interface-method
         */
        public abstract Integer getSomeId();

    which causes xdoclet to generate faulty value-objects.

    Does anybody know of a way to configure the code formatter OTHER THAN
    turning off formatting for coments that would prevent this from
    happening?

    thanks in advance
    -djh


  • Next message: Michael Amling: "Re: New: Sun Fire V40z Server"