Author: hlship
Date: Wed Apr  6 19:11:15 2011
New Revision: 1089583

URL: http://svn.apache.org/viewvc?rev=1089583&view=rev
Log:
TAP5-853: Fill in remaining methods in MethodAdvice adaptor

(note: 2 failed tests remain)

Modified:
    
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/util/InternalUtils.java

Modified: 
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/util/InternalUtils.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/util/InternalUtils.java?rev=1089583&r1=1089582&r2=1089583&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/util/InternalUtils.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/util/InternalUtils.java
 Wed Apr  6 19:11:15 2011
@@ -1349,12 +1349,12 @@ public class InternalUtils
 
                     public Class getResultType()
                     {
-                        throw new IllegalStateException("getResultType() not 
yet implemented.");
+                        return invocation.getReturnType();
                     }
 
                     public Class getParameterType(int index)
                     {
-                        throw new IllegalStateException("getParameterType() 
not yet implemented.");
+                        return invocation.getParameterType(index);
                     }
 
                     public int getParameterCount()
@@ -1369,7 +1369,7 @@ public class InternalUtils
 
                     public <T extends Annotation> T 
getMethodAnnotation(Class<T> annotationClass)
                     {
-                        throw new IllegalStateException("getMethodAnnotation() 
not yet implemented.");
+                        return invocation.getAnnotation(annotationClass);
                     }
                 };
 


Reply via email to