[Mono-bugs] [Bug 81880][Nor] Changed - TypeTranslator - converts byte[] to not an array type

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jul 6 12:27:47 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel at ximian.com.


--- shadow/81880	2007-06-15 07:30:50.000000000 -0400
+++ shadow/81880.tmp.17180	2007-07-06 12:27:46.000000000 -0400
@@ -2,21 +2,20 @@
 Product: Mono: Class Libraries
 Version: unspecified
 OS: GNU/Linux [Other]
 OS Details: RedHat 4 update 4 64 bit, probably all of Linux systems
 Status: NEW   
+Severity: Unknown
 Priority: Normal
 Component: Sys.XML
 AssignedTo: atsushi at ximian.com                            
 ReportedBy: mdabek at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 Summary: TypeTranslator - converts byte[] to not an array type
 Steps to reproduce the problem:
 1. Define or use a wsdl file, which will contain a function with an
 argument of ArrayOfUnsignedByte type. 
 2. Use wsdl2 to generate C# code. The generated C# function should have a
@@ -42,6 +41,14 @@
 of byte[] and it defines the TypeData as an primitive. The solution for me
 was the following change:
 - nameCache.Add(typeof (byte[]), new TypeData (typeof(byte[]),
 "base64Binary", true);
 + nameCache.Add(typeof (byte[]), new TypeData (typeof(byte[]),
 "base64Binary", false);
+------- Additional Comments From miguel at ximian.com  2007-07-06 12:27 -------
+Well, the above patch is likely wrong.
+We probably need to handle both cases, instead of changing the
+behavior of one case. 
+Am CCing Lluis here.

More information about the mono-bugs mailing list