aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/DefiniteStatic.java
blob: 7f9db6a12e1f6e0600e62cf0a9ced4ab1ebfc322 (plain)
1
2
3
4
5
6
7
8
9
10
11
class Type { }

class bat {
    public static final Type SOURCE = new Type();
}
public class DefiniteStatic {
    protected static final Type SINK = bat.SOURCE; 
    public Type sink = SINK;    // incorrect CE: field SINK might not have a value
    public static void main(String[] args) { }
}