geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r216116 - /geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java
Date Wed, 13 Jul 2005 05:58:15 GMT
Author: djencks
Date: Tue Jul 12 22:58:12 2005
New Revision: 216116

URL: http://svn.apache.org/viewcvs?rev=216116&view=rev
Log:
slightly more informative error message

Modified:
    geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java

Modified: geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java?rev=216116&r1=216115&r2=216116&view=diff
==============================================================================
--- geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java
(original)
+++ geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanAttribute.java
Tue Jul 12 22:58:12 2005
@@ -224,7 +224,7 @@
                     Method getterMethod = gbeanInstance.getType().getMethod(getterName, null);
 
                     if (!getterMethod.getReturnType().equals(type)) {
-                        throw new InvalidConfigurationException("Getter method not found
" +getDescription());
+                        throw new InvalidConfigurationException("Getter method of wrong type:
" + getterMethod.getReturnType() + " expected " +getDescription());
                     }
                     getInvoker = new FastMethodInvoker(getterMethod);
                 } catch (NoSuchMethodException e) {



Mime
View raw message