[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incomprehensible bit of code...



At 10:50 11/06/2001 -0400, you wrote:
>Stan,
>
>Maybe this has something to do with it.  Maybe not ... I'm not familar
>with Ozone.
>
>Kerry
>
>http://developer.java.sun.com/developer/qow/archive/127/index.html


Indeed. Thanks. excuse my stupidity ( everyone has his weak moments...;-))

(a shame after 4 years of java...)



>Stan Pinte wrote:
>
> > hello,
> >
> > again, I have an bit of code which is not understanble...
> >
> > this works:
> >
> > Object[] objects = factsMap.get(factType);
> > PersistentFact[] facts = new PersistentFact[objects.length];
> > for (int i=0; i<facts.length; i++)
> > {
> >         facts[i] = (PersistentFact)objects[i];
> >         }
> > return facts;
> >
> > whereas this is not working:
> >
> > return (PersistentFact[])objects;
> >
> > even if it should be sytactically equivalent,
> >
> > please correct me,
> >
> > Stan.