A
Andreas Leitgeb
I'm working with a somewhat dated Version of eclipse, and I stumbled
over some "legacy"-bits in the eclipse-core libraries, especially
org.eclipse.core.runtime.IAdaptable.getAdapter(Class adapter)
Do I just have to live with it (and write non-generic code also
for the classes implementing IAdaptable - eventually with an
annotation that suppresses the warning), or is it something that
an eclipse-upgrade or some other trick in the implementing class
would solve?
My attempt to use Class<?> as argument type in the implementing
class failed, and I'm not sure I understand the deeper reasons of
why this has to fail. I.e. why it doesn't just see it as an override
instead of complaining about a bad overload.
over some "legacy"-bits in the eclipse-core libraries, especially
org.eclipse.core.runtime.IAdaptable.getAdapter(Class adapter)
Do I just have to live with it (and write non-generic code also
for the classes implementing IAdaptable - eventually with an
annotation that suppresses the warning), or is it something that
an eclipse-upgrade or some other trick in the implementing class
would solve?
My attempt to use Class<?> as argument type in the implementing
class failed, and I'm not sure I understand the deeper reasons of
why this has to fail. I.e. why it doesn't just see it as an override
instead of complaining about a bad overload.