Hi,


Has this been fixed in the snapshot jars?  I'm using the latest jars but my 
java source is being generated with the 'is' getter method for a Boolean 
property.  I had a look at AttributeFacadeLogicImpl source and the 
handleGetGetterName method still returns 'is' for Boolean types?  



FYI, checked the java beans spec and its seems that the 'is' prefix is only 
legal for boolean primitives.  some room for ambiguity.



cheers, Nathan



http://java.sun.com/products/javabeans/docs/spec.html

<snip>

8.3.2 Boolean properties

In addition, for boolean properties, we allow a getter method to match the 
pattern: public boolean is<PropertyName>(); This “is<PropertyName>” method may 
be provided instead of a “get<PropertyName>” method,

or it may be provided in addition to a “get<PropertyName>” method.

In either case, if the “is<PropertyName>” method is present for a boolean 
property then we will use the “is<PropertyName>” method to read the property 
value. An example boolean property might be:

public boolean isMarsupial();

public void setMarsupial(boolean m);

</snip>
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1945#1945
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to