| 1 |
public class WildCardCrash {} |
| 2 |
|
| 3 |
abstract class AbstractTransfer123< |
| 4 |
IndexStore extends CFAbstractStore123<CFValue123, IndexStore>, |
| 5 |
MySelf extends AbstractTransfer123<IndexStore, MySelf>> |
| 6 |
extends CFAbstractTransfer123<CFValue123, IndexStore, MySelf> { |
| 7 |
void method() { |
| 8 |
// There was a crash when checking the assignment of analysis to the formal parameter. |
| 9 |
SomeGen<IndexStore> rfi = new SomeGen<>(analysis); |
| 10 |
} |
| 11 |
} |
| 12 |
|
| 13 |
class SomeGen<IndexStore extends Store123<IndexStore>> { |
| 14 |
public SomeGen(CFAbstractAnalysis123<CFValue123, ?, ?> analysis) {} |
| 15 |
} |
| 16 |
|
| 17 |
class CFValue123 extends CFAbstractValue123<CFValue123> {} |
| 18 |
|
| 19 |
@SuppressWarnings("initialization") |
| 20 |
class CFAbstractTransfer123< |
| 21 |
V extends CFAbstractValue123<V>, |
| 22 |
S extends CFAbstractStore123<V, S>, |
| 23 |
T extends CFAbstractTransfer123<V, S, T>> |
| 24 |
implements TransferFunction123<V, S> { |
| 25 |
protected CFAbstractAnalysis123<V, S, T> analysis; |
| 26 |
} |
| 27 |
|
| 28 |
class CFAbstractValue123<V extends CFAbstractValue123<V>> implements AbstractValue123<V> {} |
| 29 |
|
| 30 |
class CFAbstractStore123<V extends CFAbstractValue123<V>, S extends CFAbstractStore123<V, S>> |
| 31 |
implements Store123<S> {} |
| 32 |
|
| 33 |
abstract class CFAbstractAnalysis123< |
| 34 |
V extends CFAbstractValue123<V>, |
| 35 |
S extends CFAbstractStore123<V, S>, |
| 36 |
T extends CFAbstractTransfer123<V, S, T>> |
| 37 |
extends Analysis123<V, S, T> {} |
| 38 |
|
| 39 |
interface AbstractValue123<V extends AbstractValue123<V>> {} |
| 40 |
|
| 41 |
interface Store123<T extends Store123<T>> {} |
| 42 |
|
| 43 |
interface TransferFunction123<A extends AbstractValue123<A>, S extends Store123<S>> {} |
| 44 |
|
| 45 |
class Analysis123< |
| 46 |
A extends AbstractValue123<A>, |
| 47 |
S extends Store123<S>, |
| 48 |
T extends TransferFunction123<A, S>> {} |