Hi Lester,
> Given Java's lack of templates, this is about the only way
> you can build
> "type-consistent" collections.
Hibernate 3 will support Java Generics and I hope a future version of fulcrum will
support them, too ;)
> More correct would be to add the following methods to the subclasses
> (RoleSet used as an example):
>
> /* The RoleSet.add method */
> public boolean add(Object obj)
> {
> if (obj instanceof RoleSet)
> {
> add((Role)obj);
> }
> else
> {
> super.add(obj);
> }
> }
>
> This maintains type integrity and implements the full set
> interface. This
> could be easily added while leaving the existing add(<type>)
> methods in
> place.
Agreed. Unfortuanly I don't have commit rights ;). I hope everone of the extremly
bussy trubine developers have the change
to correct this before 2.4 is release.
Have a nice weekend.
--
tobias rademacher
[sofwareentwickler]
innoWake gmbh
innovative.software.development();
graf-arco-strasse 18 | 89079 ulm-donautal
fon: +49 (0)7 31 - 5 50 27 - 0
fax: +49 (0)7 31 - 5 50 27 - 20
[EMAIL PROTECTED]
www.innowake.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]