google-code-export / umple

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

Umple code disappears in certain cases #515

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Paste this to the Umple code section

class Student
{
    Integer id;
}
class Mentor
{
    String name;
    * sorted {name} -- * Student sorted {id};
}

2. Move one of the generated model.

3. The Umple code disappears.

What is the expected output? What do you see instead?
I should expect the umple code not to disappear.
I see the umple code disappears. 

What version of the product are you using? On what operating system?
Safari, Mozilla Firefox, and Google Chrome [Mac OS X 10.9.1]

Please provide any additional information below.

Original issue reported on code.google.com by cmw...@cornell.edu on 14 Feb 2014 at 6:29

Attachments:

GoogleCodeExporter commented 9 years ago
Good catch. This seems to be specifically related to the presence of the 
'sorted' modifier.

Original comment by TimothyCLethbridge on 18 Feb 2014 at 3:01

GoogleCodeExporter commented 9 years ago
Here is example b of this phenomenon:

class User{
  public List<Integer> enterPIN(){
  }
}

class Authorizer{
}

In this case, the umple code disappears when you hit 'delete' and then click on 
the 'User' class. This goes away of the <Integer> is not present, so there must 
be parsing of pattern matching somewhere that causes this

Original comment by TimothyCLethbridge on 20 Feb 2014 at 2:20

GoogleCodeExporter commented 9 years ago
Solved the issue.
I am testing it now.

Original comment by cmw...@cornell.edu on 4 Mar 2014 at 9:26

GoogleCodeExporter commented 9 years ago
The issue was that when the actionCode included the "<" or ">" , somehow the 
umplesync cannot read this character directly. Solution was add backslash. "<" 
to "\<" and ">" to "\>".

Original comment by cmw...@cornell.edu on 4 Mar 2014 at 9:28

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 5 Mar 2014 at 1:25