[XDoclet-JIRA] Created: (XDT-1554) Java 5 Support in Template Language

"Adam Brod (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Java 5 Support in Template Language
-----------------------------------

         Key: XDT-1554
         URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1554
     Project: XDoclet
        Type: Bug
  Components: XDoclet Module  
    Versions: 1.2.3    
 Environment: Any
 Reporter: Adam Brod
 Assigned to: xdoclet-devel (Use for new issues) 


I cannot find any support for Java 5 in the Template Language.

For example, I want to generate an interface from my class.  I want to be able to output the parameter list with the support for Generics.

E.g.

public void myMethod(List<String> strs) { ... }

should go into an interface with a method like:

public void myMethod(List<String> strs) ;

Currently if I put the following in my template:

public <XDtMethod:methodType/> <XDtMethod:methodName/>( <XDtParameter:parameterList/> );

I get this in my interface:

public void myMethod(List strs) ;

The type-safety of my collection has been lost!  My class cannot inherit from the generated interface because of the missing type parameters.

If this is supported in the Template Language, I can't find it in the documentation.

This is related to http://opensource2.atlassian.com/projects/xdoclet/browse/XJD-41

Java 5 has been out for more than a year and I have been track XJD-41 for a while.  Even though the parser doesn't die on Generics, the template language doesn't appear to be up-to-date.

Thanks for your hard work!

Adam

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.