satyasuman / diezel

Automatically exported from code.google.com/p/diezel
0 stars 0 forks source link

No support for Generics type params #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Define:

<transition name="type">
    <signature>type(java.lang.Class&lt;X&gt; type)</signature>
</transition>

* Note, not critical but is there a way to avoid having to escape the '<' and 
'>' chars?

What is the expected output? 

    public  S4DSL6  type(java.lang.Class<X> type) ;

What do you see instead?

    public  S4DSL6  type(java.lang.Class ;

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by leoneume...@gmail.com on 8 Feb 2012 at 11:22

GoogleCodeExporter commented 9 years ago
a workaround, that also answers the "note" question, is to use CData section in 
the XML file, just like that:

<transition name="type">
            <signature><![CDATA[type(java.lang.Class<X> type)]]></signature>
</transition>

This is an issue with the parser ( that also forces expression to be in a 
single line.

To be fixed

Original comment by e...@ericaro.net on 9 Feb 2012 at 8:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 702f5a6f0e2e.

Original comment by e...@ericaro.net on 9 Feb 2012 at 8:31

GoogleCodeExporter commented 9 years ago
Works nicely. Thank you!

Original comment by leoneume...@gmail.com on 9 Feb 2012 at 10:24