google-code-export / umple

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

Various glitches in the new tempting capability #533

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have discovered that the new Umple templating capability has the 
following issues regarding quotes:

1. If a single ' or " appears somewhere in the template text, it generates   
bad Java. ***

2. I can escape a single ' using \' but this doesn't work for \", which   
generates bad code.

3. If I specify "" or '' these are emitted as is (not a problem, just an
observation)

4. The sequence \\ becomes \

5. If I specify certain other sequences such as \q then I get bad code
too.

6. The sequence << in the plain text also results in bad code but >> is  
OK. This can manifest itself in the following <<<=test>>> where I want to
output <something>. I can only do this by putting the < and > in
variables.

We ought to be consistent and document this stuff and at least not
generate bad code in the cases of 1, 2, 5 and 6.

If I have a bug in embedded <<=code>> then the line number reported for   
the error is not correct.

If there are other bugs in templating such as incorrect brackets, I don't      
get any pointer to which line the bug is on. In time this could be improved

Original issue reported on code.google.com by TimothyCLethbridge on 18 Mar 2014 at 6:10

GoogleCodeExporter commented 9 years ago
The escaping (3,4, and 5) issues are resolved

Original comment by ahmedvc@gmail.com on 18 Mar 2014 at 7:01

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r3722.

Original comment by RedEyedM...@gmail.com on 18 Mar 2014 at 7:18