This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Generated code for arrays is not generated properly.
I take it you mean that methods which return arrays are not shown in the tree where you select what you want to generate for. At least that is what I'm seeing since I cannot find any even though the classes have them.
It throws an exception for a byte array, but also generates wrong code for other types of arrays, e.g. int[]
i have tracked down the problem down to the following: we are trying to get a component type in the template out.writeShort(${registry.getRegisteredTypeId( type.getComponentType())}); which in this case is byte but that type is not in the class data registry. The problem is that only byte[] is in the class data registry but not its component type. If I use byte alone anywhere in the web project it gets added and the exception does not occur. So the problem is in the ArrayTypeSerializer, it should add array component type to the registry automatically. Fix in progress.
the problem mentioned is fixed, but there are still some issues such as incompatible object types. Problem is in the primitive type serializer. Fix in progress.
fixed
the generated code for arrays is not working. I'm attaching the web app project. The methods returning arrays are in package "echo.arrays" In "test0911.arrays" package is the code generated by MC2WA
Created attachment 48583 [details] web project
Created attachment 48586 [details] generated mobile part
Thanks for testcase. I doubt if multidimensional arrays are supported, simple arrays support should be fixed
Fixed. Seems to be working for multidimensional arrays.
verified in 20071012030351