Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9041

eclipse and un-generics

Newsgroups comp.lang.java.programmer
From Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Subject eclipse and un-generics
Message-ID <slrnja0lhk.6gl.avl@gamma.logic.tuwien.ac.at> (permalink)
Date 2011-10-20 17:11 +0000

Show all headers | View raw


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.

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

eclipse and un-generics Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-10-20 17:11 +0000
  Re: eclipse and un-generics Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-10-20 17:51 -0500
    Re: eclipse and un-generics Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-10-22 23:04 +0000

csiph-web