[ http://jira.andromda.org/browse/JAVA-36?page=comments#action_14752 ]
Jose M. Fernandez commented on JAVA-36: --------------------------------------- Finally solved the problem. It was due to several java.lang types added in the model. I had java.util.iterator, java.util.list and some other types in the argo's model tree (not under datatypes, at project level). I removed them and the classes were not generated and all compiled fine. > 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 > Attachments: List.java > > 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/