commit | 2ade35fd041acbef9aeb2c076e958d656958ec5e | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Thu Sep 20 10:03:01 2007 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Thu Sep 20 10:03:01 2007 +0000 |
tree | 85d3479e5483dabf45d28d0a54e06d290c23b209 | |
parent | 0267436f113e847acd43c7e9f92a99b252a0cdba [diff] |
FELIX-375 implemented interfaces of base classes from the class path are not recognized git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@577662 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java b/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java index 794befe..68a6715 100644 --- a/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java +++ b/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
@@ -59,9 +59,17 @@ return null; } - public JavaClassDescription[] getImplementedInterfaces() { - // TODO Auto-generated method stub - return null; + public JavaClassDescription[] getImplementedInterfaces() throws MojoExecutionException { + Class[] implemented = clazz.getInterfaces(); + if (implemented == null || implemented.length == 0) { + return null; + } + + JavaClassDescription[] jcd = new JavaClassDescription[implemented.length]; + for (int i=0; i < jcd.length; i++) { + jcd[i] = manager.getJavaClassDescription(implemented[i].getName()); + } + return jcd; } /**