Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-635

Roo deletes non-JavaDoc comments when adding entity fields

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.0.1.RELEASE
    • Fix Version/s: 1.2.4.RELEASE
    • Component/s: @ CORE
    • Labels:
      None
    • Environment:
      Win XP SP 3

      Description

      If an entity's .java file contains any non-JavaDoc comments like these ones:

      private String name;
      
      // This comment has the single-line style
      
      private Date birthday;
      
      /*
       * This comment has the multi-line style.
       */
      
      public void foo() {
        ...
      }

      ... then adding a field to this entity via the Roo shell will strip out any such comments. I haven't tested whether this happens when Roo "manages" such files for any other reason.

      This is clearly undesirable behaviour in a source file that's meant to be able to contain hand-written code (as opposed to say the AspectJ ITDs, which are fully maintained by Roo).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stewarta Alan Stewart
                Reporter:
                aswan Andrew Swan
              • Votes:
                15 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: