[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
incomprehensible bit of code...
- To: oZONE-DEV@OZONE-DB.ORG
- Subject: incomprehensible bit of code...
- From: Stan Pinte <stan.pinte@wanadoo.be>
- Date: Mon, 11 Jun 2001 16:37:37 +0200
- Delivered-To: mail@smb-tec.com
- Delivered-To: softw7-ozone-db:org-oZONE-DEV@OZONE-DB.ORG
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.