Affects Version/s: 1.6-rc-3
Fix Version/s: None
Environment:windows XP, sun jdk1.6
Number of attachments :
StackOverflowError when mixin is called before instance creations (a and b) in case same mixin on two classes (linked by inheritance)
The script in attachement should be clear enough.
Here is a summary :
B extends A
XCategory is mixin to A and B
a instance of A and b instance of B
When the mixins are applied after the instance creations (as in comments), it works.
The stackoverflow indicates :
Another point is how to have the following assert code working :
assert a.toString() == "XA"
assert b.toString() == "XBXA" // instead of "XBA"