wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1023046 - /incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java
Date Fri, 15 Oct 2010 18:08:48 GMT
Author: bluk
Date: Fri Oct 15 18:08:48 2010
New Revision: 1023046

URL: http://svn.apache.org/viewvc?rev=1023046&view=rev
Log:
Fix another issue with resource method inheritance

The stored method should be the method with the
@GET,@POST,etc. instead of the implementation
method.

Thanks to Luciano Resende for reporting the issue.

Modified:
    incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java

Modified: incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java?rev=1023046&r1=1023045&r2=1023046&view=diff
==============================================================================
--- incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java
(original)
+++ incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/metadata/ResourceMetadataCollector.java
Fri Oct 15 18:08:48 2010
@@ -314,7 +314,6 @@ public class ResourceMetadataCollector e
                 MethodMetadata createdMetadata = createMethodMetadata(superclass, method);
                 // stop with if the method found
                 if (createdMetadata != null) {
-                    createdMetadata.setReflectionMethod(method);
                     mergeFormalParameterMetadata(createdMetadata, method);
                     return createdMetadata;
                 }
@@ -326,7 +325,6 @@ public class ResourceMetadataCollector e
                 MethodMetadata createdMetadata = createMethodMetadata(interfaceClass, method);
                 // stop with the first method found
                 if (createdMetadata != null) {
-                    createdMetadata.setReflectionMethod(method);
                     mergeFormalParameterMetadata(createdMetadata, method);
                     return createdMetadata;
                 }



Mime
View raw message