Update of /cvsroot/nice/Nice/src/nice/tools/code
In directory sc8-pr-cvs1:/tmp/cvs-serv18340/src/nice/tools/code
Modified Files:
MultiArrayNewProc.java
Log Message:
Give better bytecode types to nested arrays.
Index: MultiArrayNewProc.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/code/MultiArrayNewProc.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** MultiArrayNewProc.java 15 Jan 2003 10:16:41 -0000 1.4
--- MultiArrayNewProc.java 20 Feb 2003 00:21:44 -0000 1.5
***************
*** 83,90 ****
private static boolean hasPrimitiveComponents(ArrayType array)
{
! while (array.getComponentType() instanceof ArrayType)
! array = (ArrayType) array.getComponentType();
! return array.getComponentType() instanceof PrimType;
}
--- 83,90 ----
private static boolean hasPrimitiveComponents(ArrayType array)
{
! Type componentType = array.getComponentType();
! return componentType instanceof ArrayType
! || componentType instanceof PrimType;
}
|