P
poorichard
Hi,all
I had a strange problem,
the sentence down:
Object[] listeners = ChartPanel.getListeners(ChartMouseListener.class);
will get the complie error "the method getListeners(Class) is ambiguous
for the type chartPanel",
and when convert the ChartMouseListener.class to (Class)
ChartMouseListener.class,
It workds well,
but the ChartMouseListener.class is just a Class,isn't it?
btw,the enviement is JDK1.5 and Elcipse3.1.1,
anyone can explain my puzzle?
best regards,
Richard
I had a strange problem,
the sentence down:
Object[] listeners = ChartPanel.getListeners(ChartMouseListener.class);
will get the complie error "the method getListeners(Class) is ambiguous
for the type chartPanel",
and when convert the ChartMouseListener.class to (Class)
ChartMouseListener.class,
It workds well,
but the ChartMouseListener.class is just a Class,isn't it?
btw,the enviement is JDK1.5 and Elcipse3.1.1,
anyone can explain my puzzle?
best regards,
Richard