google-code-export / umple

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

"after" directive doesn't work after manual code #411

Closed GoogleCodeExporter closed 9 years ago

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

Consider following codes. Umple generates correct code for class 
SuperCodeGenerator2 while it generates incorrect one for SuperCodeGenerator1   

class SuperCodeGenerator1 {

    public String generate() {
        return "";
    }

    after constructor {
        initializeLangaugeBasedVariables();
    }
}

class SuperCodeGenerator2 {

    after constructor {
        initializeLangaugeBasedVariables();
    }

    public String generate() {
        return "";
    }
}

What is the expected output? 

Both of classes have the same code so code generation must be correct for them.
It is because Umple encounters with after as manual code.

Original issue reported on code.google.com by V.Abdel...@gmail.com on 22 Aug 2013 at 1:44

GoogleCodeExporter commented 9 years ago
Am I mistaken in suggesting that this is now fixed because of the exception 
handling?

Original comment by RedEyedM...@gmail.com on 11 Sep 2013 at 9:41

GoogleCodeExporter commented 9 years ago
Seems to have been fixed as a result of other changes.

Original comment by TimothyCLethbridge on 12 Sep 2013 at 2:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I checked and saw the error again. I think I didn't fix.

Original comment by V.Abdel...@gmail.com on 12 Sep 2013 at 7:01