| Other |
|---|
| 5.0 b54Fixed |
|
Relates :
|
The following should give an error: type parameters K and V aren't in scope
in the extends clause of Bucket because Bucket is a static nested class. Yet
the compiler allows it.
import java.util.*;
class MPair<A,B> {}
class Test<K,V> {
private static class Bucket extends LinkedList<MPair<K,V>> {}
private Bucket[] buckets = new Test.Bucket[100];
}
|