Also, in the documentation, please put a BIG FAT note 


that in the method



<code>Foo::setBars(Collection bars)</code>



the parameter <code>bars</code> must be of type java.util.Set.

I was using a java.util.List.



Otherwise you will get a runtime ClassCastException error,

which is not very helpful (I wish it at least told me what class it was 
expecting).



Fortunately, I ran into this thread and tried switching to a HashSet, and 
miraculously, it worked.



What would be better, is that the parameter type should be a Set when 
appropriate, if it's required that it be a Set, making it less likely for a 
developer to shoot himself in the foot.

I shouldn't have to add something in one of my property files for this kind of 
behavior.



Otherwise, things are working great!.



thanks

Fi
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2709#2709
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