[
https://issues.apache.org/jira/browse/SANDBOX-388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claudio Squarcella updated SANDBOX-388:
---------------------------------------
Attachment: SANDBOX-388_FixForGenericTypesInEclipse.patch
Hello Steven (and all),
thank you for sharing your intuition!
I am attaching a patch that draws on the same idea (re)introducing
{{WeightedGraph}} as an interface, to fix the problem at the interface level.
And yes, [blame me for getting rid of that
before|https://issues.apache.org/jira/browse/SANDBOX-344]! :D
Hoping this helps,
Claudio
> Generic Type inference doesn't work in Eclipse
> ----------------------------------------------
>
> Key: SANDBOX-388
> URL: https://issues.apache.org/jira/browse/SANDBOX-388
> Project: Commons Sandbox
> Issue Type: Bug
> Components: Graph
> Environment: Eclipse Java EE IDE for Web Developers.
> Version: Indigo Service Release 1
> Build id: 20110916-0149
> Reporter: Simone Tripodi
> Priority: Blocker
> Attachments: SANDBOX-388_FixForGenericTypesInEclipse.patch,
> sandbox-388.txt
>
>
> {{Flow}} and {{MST}} EDSL is affected by generic type inference issue, it
> simply doesn't work in Eclipse. It works in IDEA, but in the Eclipse forum
> they reported that doesn't work if the code is compiled with Oracle JDK7.
> One of the reported error in Eclipse is:
> {quote}
> Type mismatch: cannot convert from
> SpanningTree<BaseLabeledVertex,BaseLabeledWeightedEdge<Double>,Object> to
> SpanningTree<BaseLabeledVertex,BaseLabeledWeightedEdge<Double>,Double>
> {quote}
> Looking for a solution
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira