[ http://jira.andromda.org/browse/JAVA-13?page=comments#action_11620 ]
Rastislav Tkac commented on JAVA-13:
------------------------------------
Sorry, it was not EnumerationType, but EnumerationTest. In version 3.0 final.
Look at Enumeration.vsl
/**
* @see java.lang.Object#equals(java.lang.Object)
*/
public boolean equals(Object object)
{
#if ($enumeration.literalType.primitive)
return (this == object)
|| (object instanceof EnumerationTest
&& ((EnumerationTest)object).getValue() == this.getValue());
#else
return (this == object)
|| (object instanceof $enumeration.name &&
(($enumeration.name)object).getValue().equals(
this.getValue()));
#end
}
> Enumeration equals() has compile error
> --------------------------------------
>
> Key: JAVA-13
> URL: http://jira.andromda.org/browse/JAVA-13
> Project: Java Cartridge
> Type: Bug
> Reporter: Rastislav Tkac
> Assignee: Chad Brandon
> Priority: Blocker
>
> In any generated class with stereotype <<Enumeration>>, equals() method uses
> casting to EnumerationType, but the generated class doesn´t extend or
> implement EnumerationType. Casting to base type is not good approach at all.
> Good approach is, when casting is to concrete type.
--
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 Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel