Ticket #15 (closed defect: fixed)
Convert to Sensoria tool action with generic types
Reported by: | sensoria | Owned by: | sct |
---|---|---|---|
Priority: | major | Milestone: | IntegrationVersionM30 |
Component: | SDE core | Version: | 3.0 |
Keywords: | generics | Cc: | mtribast@inf.ed.ac.uk |
Description
If a function has a generic type as return value then the 'Convert to Sensoria tool' UI action compiles out a wrong xml snippet. For example, if the return value is an instance of java.util.Map<K,V> then the return attribute in the xml snippet looks like: returns="java.util.Map<K,V>" which is not correctly parsed. I tried to manually replace '<' and '>' with their escape characters (< and &rt;) with no luck.
How can I specify generic types in a function's signature?
Change History
Note: See
TracTickets for help on using
tickets.
As generic type information is erased when compiling to bytecode, it should be sufficient to simple add java.util.Map without any generic information.
I will look into the generation code to fix this.