Debian Codegraph @

framework/tests/all-systems/InferTypeArgs2.java

raw
1 class InferTypeArgs2<V extends InferTypeArgs2<V>> {}
2
3 // having a concrete extension of InferTypeArgs2 is the key difference between this and
4 // InferTypeArgs1.java. In this case we end up comparing CFValue with V extends InferTypeArgs2<V>
5 // which kicks off the DefaultRawnessComparer. Before I fixed it, it then blew the stack
6 class CFValue extends InferTypeArgs2<CFValue> {
7 public CFValue(InferTypeArgsAnalysis<CFValue, ?, ?> analysis) {}
8 }
9
10 class CFAbstractStore<V extends InferTypeArgs2<V>, S extends CFAbstractStore<V, S>> {}
11
12 class CFAbstractTransfer<
13 V extends InferTypeArgs2<V>,
14 S extends CFAbstractStore<V, S>,
15 T extends CFAbstractTransfer<V, S, T>> {}
16
17 class InferTypeArgsAnalysis<
18 V extends InferTypeArgs2<V>,
19 S extends CFAbstractStore<V, S>,
20 T extends CFAbstractTransfer<V, S, T>> {
21 public CFValue defaultCreateAbstractValue(InferTypeArgsAnalysis<CFValue, ?, ?> analysis) {
22 return new CFValue(analysis);
23 }
24 }