Description
The solution applied to the original issue is not fully correct.
It will work if service interface is extended by other INTERFACE(so does in example with ArrayList and Collection).
It won't work if service interface is implemented by super CLASS.
I couldn't find example in JDK so imagine that you have:
class A extends B
{...}class B implements C {...}
interface C
{...}Now, when you call ClassUtils.getInterfaceClass(new A(), "C") it will return null.
A workaround for this issue is to declare:
class A extends B implements C {...}
.
Attachments
Issue Links
- is a clone of
-
DOSGI-24 org.apache.cxf.dosgi.dsw.ClassUtils#getInterfaceClass() method should search through super class interfaces too
- Closed