java2xtend icon indicating copy to clipboard operation
java2xtend copied to clipboard

+= operator not converted properly

Open abies opened this issue 12 years ago • 0 comments

public class Test {
    public void m() {
        int x = 5;
        x+=1;
    }
}

gets converted to

class Test {
  def m(){
    var x=5
    x+=1
  }
}

which is not valid xtend code (because of +=). It should convert into x = x +1 This is also affecting Strings, not only numbers and is the case for other operators as well (in particular, x |= 8; )

abies avatar Jun 04 '13 12:06 abies