google-code-export / umple

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

Incorrect constructor when there is a lazy attribute and a 1--1 association #461

Closed GoogleCodeExporter closed 9 years ago

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

Create a class with a 1--1 association and also a lazy attribute. A second 
constructor is created with uncompilable code. This only happens in this 
special combination of cases.

class X {
  1 -- 1 Z;
  lazy d;
}

class Z {}

Compiling the resulting java using -C - results in
X.java:38: error: cannot find symbol
    d = aD;
        ^
  symbol:   variable aD
  location: class X

Original issue reported on code.google.com by TimothyCLethbridge on 21 Nov 2013 at 4:32

GoogleCodeExporter commented 9 years ago

Original comment by Tianyuan...@gmail.com on 21 Nov 2013 at 6:29

GoogleCodeExporter commented 9 years ago
fix in r3232

Original comment by Tianyuan...@gmail.com on 23 Nov 2013 at 3:42

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 9 Dec 2013 at 1:40