[
https://issues.apache.org/jira/browse/TUSCANY-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622161#action_12622161
]
Simon Laws commented on TUSCANY-2544:
-------------------------------------
For the time being I've removed the cast to Feed altogether. Looking at API
docs it looks like this should work but the IBM JDK 1.5 doesn't like it. I
> inconvertible types error when compiling binding-gdata-runtime
> ---------------------------------------------------------------
>
> Key: TUSCANY-2544
> URL: https://issues.apache.org/jira/browse/TUSCANY-2544
> Project: Tuscany
> Issue Type: Bug
> Affects Versions: Java-SCA-Next
> Environment: Win XP SP2 IBM JDK 1.5
> Reporter: Simon Laws
> Assignee: Simon Laws
> Fix For: Java-SCA-Next
>
>
> During clean compile of binding-gdata-runtime. I get.
> C:\simon\tuscany\java-trunk\sca\modules\binding-gdata-runtime\src\test\java\org\
> apache\tuscany\sca\binding\gdata\consumerprovider\CustomerClientImpl.java:[108,4
> 6] inconvertible types
> found : com.google.gdata.data.BaseFeed<capture of ? extends
> com.google.gdata.d
> ata.BaseFeed,capture of ? extends com.google.gdata.data.BaseEntry>
> required: com.google.gdata.data.Feed
> The line causing the problem is
> Feed feed = (Feed) resourceCollection.getFeed();
> There are many references on the net to these kinds of errors where generics
> are cast up. Needs more investigation as to whether this is a compiler
> specific funny.
> Forcing the generics out of the picture using something like
> Feed feed = (Feed)(Object) resourceCollection.getFeed();
> Does work but is obviously not good.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.