Skip to main content

[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

You are right - I've errors turned on - hence my build succeeds but my
workspace showed me the errors.

Tom

On 03.04.15 11:03, Andrey Loskutov wrote:
> 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
> 


-- 
Thomas Schindl, CTO
BestSolution.at EDV Systemhaus GmbH
Eduard-Bodem-Gasse 5-7, A-6020 Innsbruck
http://www.bestsolution.at/
Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck


Back to the top