-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
6
Javac cannot compile this program:
import java.util.EventListener;
import javax.swing.event.EventListenerList;
class Test {
void test(String name, EventListenerList list, EventListener l)
throws ClassNotFoundException
{
list.add((Class<? extends EventListener>)Class.forName(name), l);
}
}
###@###.### 10/8/04 21:39 GMT
import java.util.EventListener;
import javax.swing.event.EventListenerList;
class Test {
void test(String name, EventListenerList list, EventListener l)
throws ClassNotFoundException
{
list.add((Class<? extends EventListener>)Class.forName(name), l);
}
}
###@###.### 10/8/04 21:39 GMT
- duplicates
-
JDK-6184376 Wrong generification of javax.swing.event.EventListenerList
-
- Closed
-
- relates to
-
JDK-5049523 Inference should compute glb of type arguments
-
- Closed
-