[ http://jira.andromda.org/browse/JAVA-36?page=comments#action_14744 ] 

Jose M. Fernandez commented on JAVA-36:
---------------------------------------

I've reproduced this error. It's caused by a java-cartridge generated empty 
java.util.List. I don't know why it is generated. I'll attach a copy of this 
file.

> 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: 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/

Reply via email to