Update of /cvsroot/nice/Nice/src/nice/tools/code
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14271/src/nice/tools/code
Modified Files:
SpecialArray.java
Log Message:
In bytecode, an array with unknown element types needs conversion when used
as an Object[].
Index: SpecialArray.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/code/SpecialArray.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** SpecialArray.java 25 Nov 2003 19:22:58 -0000 1.15
--- SpecialArray.java 28 Jan 2004 13:10:11 -0000 1.16
***************
*** 321,324 ****
--- 321,330 ----
public boolean isAssignableTo (Type other)
{
+ if (this == other)
+ return true;
+
+ if (unknown)
+ return other == objectType;
+
return
other == objectType ||
|