[ http://jira.andromda.org/browse/JAVA-36?page=comments#action_14514 ]
Thorsten Pohl commented on JAVA-36: ----------------------------------- I have taken a look at the Situation here, but cannot reproduce the Problem. Setting "enableTemplating" causes the Java-Cartridge to generate Java5-Code, which could not be compiled by maven (with my defaults), but setting the Java Source Level to 1.5 as explained here (http://galaxy.andromda.org/forum/viewtopic.php?p=13367) solved that. Also Eclipse handles the code correctly. AndroMDA generated this code for me: private static java.util.List<java.lang.String> literals = new java.util.ArrayList<java.lang.String>(2); and public static java.util.List<java.lang.String> literals() { return literals; } Which is both correct Java5-Code and compiles fine on my machine.. Still, I am wondering, why you can get the Message "the Type List is not generic". This is simply untrue for Java 5. Damien, could you please check, if configuring maven to the 1.5 source level helps? If not, please post the complete source code generated for the Enumeration. Thank you. Thorsten > compile error with Enumeration (TimeTracker tutorial) > ----------------------------------------------------- > > Key: JAVA-36 > URL: http://jira.andromda.org/browse/JAVA-36 > Project: Java Cartridge > Type: Bug > Environment: WinXPJDK 1.5 AndroMDA 3.2 > Reporter: Damien Huriet > Assignee: Thorsten Pohl > > Hi, > I am trying to finish the TimeTracker tutorial with AdnroMDA 3.2. > I can't compile the java sources generated for the class "TimecardStatus". > - Without enabling the "enableTemplating" property (which is false by > default), the code generated doesn't compile : > [code] > D:\workspace\timetracker\common\target\src\org\andromda\timetracker\domain\TimecardStatus.java:[164,16] > cannot find symbol > symbol : method add(java.lang.String) > location: interface java.util.List > D:\workspace\timetracker\common\target\src\org\andromda\timetracker\domain\TimecardStatus.java:[175,40] > <T>unmodifiableList(java.util.List<? extends T>) in java.util.Collections > cannot be applied to (java.util.List) > [/code] > - When enabling the "enableTemplating" property in the file "andromda.xml" in > "/mda/src/main/config", I also get a compilation error : > [code] > D:\workspace\timetracker\common\target\src\org\andromda\timetracker\domain\TimecardStatus.java:[101,32] > type java.util.List does not take parameters > [/code] > I get these errors as soon as maven has generated the sources and tries to > compile them. I obviously also get these errors then in eclipse... > Can someone help me : I'd like to finish evaluating this MDA solution to > start a big project. > Thanks a lot. > Damien > (I've read another post concerning the "enableTemplating" property, but I > think my question is different) -- 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 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/