mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +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() 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user