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

Bob Fields commented on JAVA-40:
--------------------------------

Should be fixed now. There was a disconnect between the multiplicity lower 
bound and the primitive/wrapped types. I've added validations to make sure 
these match but haven't committed them yet, I needed them because I am mixing 
andromda code with code from other frameworks (specifically CXFand JAXB) where 
priimitive/wrapper types are automagically changed based on multiplicity. The 
general convention is isBoolean for primitives and getBoolean for wrapped 
types. Let me know if you still see any problems. I'm guessing you had the 
attribute multiplicity lowerBound set to 0, that's why it created the duplicate 
isX method, I changed it to $attribute.primitive. You'll have to fix the model 
multiplicity soon when the validations are updated.

> Duplicated getter for boolean attribute in ValueObject
> ------------------------------------------------------
>
>          Key: JAVA-40
>          URL: http://jira.andromda.org/browse/JAVA-40
>      Project: Java Cartridge
>         Type: Bug

>     Versions: 3.4-SNAPSHOT
>  Environment: All
>     Reporter: Jean-Marc Collin
>     Assignee: Bob Fields

>
> Since a few days, my Vos don't compile because there is duplicated getter for 
> boolean attribute in ValueObject. One is marked as @Deprecated. The comment 
> says : "Duplicates getBoolean method, for use as Jaxb2 compatible object". 
> But this makes the compile failed...
> Example :
> /**
>      * TODO: Model Documentation for attribute active
>      * Get the active Attribute
>      * @return active boolean
>      */
>     public boolean isActive()
>     {
>         return this.active;
>     }
>     /**
>      * 
>      * Duplicates getBoolean method, for use as Jaxb2 compatible object
>      * Get the active Attribute
>      * @return active boolean
>      */
>     @Deprecated
>     public boolean isActive()
>     {
>         return this.active;
>     }

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


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

Reply via email to