* src/vm/builtin.c (builtin_descriptorscompatible): Experimental fix for
authorStefan Ring <stefan@complang.tuwien.ac.at>
Fri, 2 May 2008 14:12:26 +0000 (16:12 +0200)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Fri, 2 May 2008 14:12:26 +0000 (16:12 +0200)
bugzilla bug #65.

src/vm/builtin.c

index dc217b72bd9b79f9fff53d2c35dbce71611b1173..86ba2e5469a3e06713fa99320f4d0261b315ce6e 100644 (file)
@@ -479,6 +479,8 @@ static bool builtin_descriptorscompatible(arraydescriptor *desc, arraydescriptor
        /* {both arrays are arrays of references} */
 
        if (desc->dimension == target->dimension) {
+               if (!desc->elementvftbl)
+                       return 0;
                /* an array which contains elements of interface types is
            allowed to be casted to Object (JOWENN)*/