strage EnumerationTest in Enumeration #compareTo
------------------------------------------------
Key: JAVA-10
URL: http://jira.andromda.org/browse/JAVA-10
Project: Java Cartridge
Type: Bug
Reporter: Leif Johansson
Assigned to: Matthias Bohlen
Priority: Critical
The following from Enumeration.vsl generates compile-time errors (since
EnumerationTest) can't be found.
/**
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
public int compareTo(Object that)
{
#if($enumeration.literalType.primitive)
return this.getValue() < ((EnumerationTest)that).getValue() ? -1 :
(this.getValue() == ((EnumerationTest)that).getValue() ? 0 : 1);
#else
return (this == that) ? 0 : this.getValue().compareTo(
(($enumeration.name)that).getValue());
#end
}
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel