[Uml-devel] [Bug 53382] round-trip code import and generation

A.Rick Anderson arick at pobox.com
Wed Aug 17 14:01:15 UTC 2005

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- Additional Comments From arick pobox com  2005-08-17 03:57 -------
Whatever technique is used, the objective should be that code generation and model generation should be inverse operations.  I understand that the problem is that information is lost in both directions.  

Meta-tags stored in Java-Doc comments like comments is one way to deal with the gross, class level structure issues.  Using the 80/20 rule, synchronizing the static model with the static structure of the source in a round-trip manner is a reasonable initial objective.

When I wrote the Java code generator for Object Team, I added a single line, terminator comment at the end of the static elements, such as methods and classes.  We never had any users complain.  In fact, most users liked it and I personally have continued to use this coding practice even in Eclipse just because it makes reading the code easier.

public class Foo {
    public void myMethod() {
    } // method myMethod
} // class Foo

More information about the umbrello-devel mailing list