Warning: Can't synchronize with repository "(default)" (/local/svn/repos/sde does not appear to be a Subversion repository.). Look in the Trac log for more information.

Ticket #15 (closed defect: fixed)

Opened 10 years ago

Last modified 9 years ago

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 (&lt; and &rt;) with no luck.

How can I specify generic types in a function's signature?

Change History

comment:1 Changed 10 years ago by sct

  • Owner changed from mayer to sct
  • Status changed from new to assigned

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.

comment:2 Changed 10 years ago by mayer

  • Milestone set to IntegrationVersionM30

comment:3 Changed 10 years ago by anonymous

  • Version set to 3.0

comment:4 Changed 9 years ago by mayer

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in SVN. Generic types are now removed when generating XML.

Note: See TracTickets for help on using tickets.