Line comments for literals in TypeSafeEnumeration -------------------------------------------------
Key: JAVA-33 URL: http://jira.andromda.org/browse/JAVA-33 Project: Java Cartridge Type: Bug Reporter: Johann Wilfling Assigned to: Matthias Bohlen Priority: Trivial The comment style for literals in TypeSafeEnumeration.vsl is only "line comment", which results in compile errors when using comments with paragraphs. In fact "$literal.getDocumentation("")" returns the comment in form of "<p> \n comment \n </p>", which contains line breaks and therefore the "line comment" is also not appropriate. Here is a patch for R3.2, which produces not the prettiest output but should work in most circumstances: --- TypeSafeEnumeration.vsl.orig 2007-02-13 18:27:20.000000000 +0100 +++ TypeSafeEnumeration.vsl 2007-02-13 13:50:46.000000000 +0100 @@ -47,7 +47,10 @@ #else #set ($arguments = "") #end - $literal.name$arguments$separator //$literal.getDocumentation("") + /** +$literal.getDocumentation(" * ") + */ + $literal.name$arguments$separator #end #set ($nbMembers = ${enumeration.memberVariables.size()}) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642