felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r608078 - /felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
Date Wed, 02 Jan 2008 11:05:46 GMT
Author: cziegeler
Date: Wed Jan  2 03:05:42 2008
New Revision: 608078

URL: http://svn.apache.org/viewvc?rev=608078&view=rev
Log:
RESOLVED - issue FELIX-445: Bind/Unbind methods are not found in inherited classes 
https://issues.apache.org/jira/browse/FELIX-445

Modified:
    felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java

Modified: felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java?rev=608078&r1=608077&r2=608078&view=diff
==============================================================================
--- felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
(original)
+++ felix/trunk/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
Wed Jan  2 03:05:42 2008
@@ -78,7 +78,8 @@
     /**
      * @see org.apache.felix.scrplugin.tags.JavaClassDescription#getMethodBySignature(java.lang.String,
java.lang.String[])
      */
-    public JavaMethod getMethodBySignature(String name, String[] parameters) {
+    public JavaMethod getMethodBySignature(String name, String[] parameters)
+    throws MojoExecutionException {
         Class[] classParameters = null;
         if ( parameters != null ) {
             classParameters = new Class[parameters.length];
@@ -98,6 +99,10 @@
         }
         if ( m != null ) {
             return new ClassLoaderJavaMethod(m);
+        }
+        // try super class
+        if ( this.getSuperClass() != null ) {
+            return this.getSuperClass().getMethodBySignature(name, parameters);
         }
         return null;
     }



Mime
View raw message