mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inline parameter: conflict for write access (IDEA-40733); exceptions are thrown if they are found in initializer (IDEA-40732 )
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import java.io.*;
|
||||
public class Subject {
|
||||
private int myInt;
|
||||
|
||||
public void withClass(Object <caret>o) {
|
||||
myInt += o.hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
class User {
|
||||
private void oper() throws IOException {
|
||||
Subject subj = new Subject();
|
||||
subj.withClass(new ThirdParty(false));
|
||||
}
|
||||
}
|
||||
|
||||
class ThirdParty {
|
||||
public ThirdParty() {
|
||||
}
|
||||
|
||||
public ThirdParty(boolean b) throws IOException {
|
||||
if (b) {
|
||||
throw new IOException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user