google-code-export / umple

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

Umpleonline does not properly display generated code that contains angle brackets #537

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put second example in 
http://cruise.eecs.uottawa.ca/umple/BasicTemplates.html into Umple Online
2. Generate Java Code
3. Compile generated code in somewhere

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

Acutal: Syntax error

MathExample.java:134: error: > expected
          Class< clazz = Class.forName(element.getClassName());
                       ^
MathExample.java:134: error: not a statement
          Class< clazz = Class.forName(element.getClassName());
               ^
2 errors

Original issue reported on code.google.com by ckchan.cs on 4 Apr 2014 at 11:56

GoogleCodeExporter commented 9 years ago
This is not a problem with the compiler. It is a problem with the display of 
the generated code. The person reporting the problem must have been copying 
(using copy to clipboard) and pasting the generated Java into a file before 
compiling..

It works fine if you click 'Download the following as a zip file'.

The problem might be related to the generation of the large output. Most likely 
some filtering of html is taking place which is resulting in the Class<?> 
getting translated into class < for display purposes

Original comment by TimothyCLethbridge on 4 Apr 2014 at 2:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I could not reproduce this issue with the download as zip nor the copy to 
clipboard options. I tried on Firefox 28, Chrome 34, and Internet Explorer 11.

Original comment by CraigBry...@gmail.com on 8 May 2014 at 2:08

GoogleCodeExporter commented 9 years ago

Original comment by CraigBry...@gmail.com on 17 Jun 2014 at 6:55