Adopting 4.5 mechanisms and APIs

This section describes changes that are required if you are trying to change your 4.4 plug-in to adopt the 4.5 mechanisms and APIs.

  1. IAdaptable#getAdapter(Class) has been generified

1. IAdaptable#getAdapter(Class) has been generified

What is affected: Clients that refer to org.eclipse.core.runtime.IAdaptable#getAdapter(Class<T>).

Description: Callers and implementers of org.eclipse.core.runtime.IAdaptable#getAdapter(Class<T>) can see compile errors or warnings when trying to compile against org.eclipse.equinox.common 3.7.0.

Action required: If your Bundle-RequiredExecutionEnvironment is J2SE-1.5 or later, update the lower bound of the Require-Bundle/Import-Package that provides or re-exports the org.eclipse.core.runtime package to the latest version, and then generify your implementations of getAdapter(Class) and fix remaining compile problems (unnecessary casts, etc.). See Bug 442021.