- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    5.0
- 
        b54
- 
        generic
- 
        solaris_8
                    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];
}
            
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];
}
- relates to
- 
                    JDK-5060485 The scope of a class type parameter is too wide -           
- Closed
 
-