Gary Brown created SHINDIG-1923:
-----------------------------------

             Summary: ClassCastException: org.apache.shindig.common.uri.Uri 
cannot be cast to java.lang.String
                 Key: SHINDIG-1923
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1923
             Project: Shindig
          Issue Type: Bug
    Affects Versions: 2.5.0-beta6
            Reporter: Gary Brown


I recently upgraded from 3.0.0-beta4 to 2.5.0-beta6, and found that the 
MetadataResponse had changed from getIframeUrl to getIframeUrls 
(Map<String,String>). However when I try accessing the value in this map I am 
getting a ClassCastException.

When looking in the code I noticed,

https://svn.apache.org/repos/asf/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/GadgetsHandlerApi.java

the MetadataResponse inner class has a method getIframeUrls() with return type 
Map<String,String>.

However in:

https://svn.apache.org/repos/asf/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/GadgetsHandlerService.java

the method getMetadata() shows the urls are defined as type Map<String,Uri>.

As the MetadataResponse API has been changed anyway, could it not just be 
changed to Map<String,Uri>? Or alternatively transform the map inside the 
GadgetsHandlerService?


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to