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:49:02 +03:00
parent 5a60b9500f
commit 9b271b5bd7
5 changed files with 119 additions and 0 deletions
@@ -0,0 +1,26 @@
import java.io.*;
public class Subject {
private int myInt;
public void withClass() throws IOException {
myInt += new ThirdParty(false).hashCode();
}
}
class User {
private void oper() throws IOException {
Subject subj = new Subject();
subj.withClass();
}
}
class ThirdParty {
public ThirdParty() {
}
public ThirdParty(boolean b) throws IOException {
if (b) {
throw new IOException();
}
}
}