inline parameter: conflict for write access (IDEA-40733); exceptions are thrown if they are found in initializer (IDEA-40732 )

This commit is contained in:
anna
2010-02-02 19:48:00 +03:00
parent 5a60b9500f
commit 9b271b5bd7
5 changed files with 119 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
public class Subject {
private int myInt;
public void withArray(int[] <caret>pia) {
myInt += pia[0];
}
}
class User {
private void oper() {
Subject subj = new Subject();
int[] ia = new int[]{0, 1};
ia[0] = 2;
subj.withArray(ia);
}
}