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

Problem with opp when method returns an array



Hi
 
I think I have found a bug in OPP. Methods that return arrays are not precompiled correctly.
 
Precompiling a class with this method:
 
public ClassB[] listClassB() {
    return (ClassB[])_classBCollection.toArray(new ClassBImpl_Proxy[0]);
}
gives:
 
 public [Ltest.ClassB; listClassB ()
 {
      Object result;
      try {
         result = link.invoke (this, "listClassB", "", 0, null, null, null);
         }
      catch (Exception ex) {
         throw new UnexpectedError(ex.toString()); }
      return ([Ltest.ClassB;)result;
      }
   }
 
 
It looks as if the construction with ClassB[] is not passed correctly.
 
Erik
---
Erik Svendsen
Vestrupvej 32
DK-9600 Aars
Denmark
email: svendsen@vip.cybercity.dk

Test.tar