[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipse-dev] [cross-project-issues-dev] org.eclipse.equinox.common has added generics to API in org.eclipse.core.runtime package
|
Tom,
where do you see compiler *errors*?
It is OK to override the public <T> T getAdapter(Class<T> adapter) method with public Object getAdapter(Class adapter), the only thing you will have are new *warnings*.
Can it be that you just have tuned your local JDT compiler settings to report those warnings as errors?
On Friday 03 April 2015 10:37 Tom Schindl wrote:
> Hi,
>
> Coming a bit late to the party but I just saw in my code that I have
> compiler errors because WorkbenchPart now has
> ----8<----
> public <T> T getAdapter(Class<T> adapter)
> ----8<----
>
> but my subclass overwrote it in 4.4 with
> ----8<----
> @Override
> public Object getAdapter(Class adapter)
> ----8<----
>
> So do we really want to break ALL Views and Editors who used this - so
> clearly this break source-compability?
>
> Tom
--
Kind regards,
google.com/+AndreyLoskutov