google-code-export / umple

Automatically exported from code.google.com/p/umple
1 stars 0 forks source link

Comments on the same line as an Attribute don't appear in the right place #427

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

class Test
{
  //Comment
  test;  //OtherComment
  test2;

}

What is the expected output? What do you see instead?

  /**
   * Comment
   */
  public String getTest()
  {
    return test;
  }

  /**
   * OtherComment
   */
  public String getTest2()
  {
    return test2;
  }

We get the first comment above the getter method for the first variable, as 
expected.
I would expect my other comment to generate in the same place too though, but 
it gets treated as the second attribute's comment and appears above that 
attribute's getter. 
If there is no second attribute, the comment doesn't appear anywhere at all.

Original issue reported on code.google.com by jc.jaysee314 on 21 Sep 2013 at 2:41

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 22 Sep 2013 at 11:40

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 12 Oct 2013 at 1:49

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 5 Dec 2013 at 2:59