Bug 317645 (MONO74521) - [monodis] escapes Array definitions..
Summary: [monodis] escapes Array definitions..
Status: RESOLVED FIXED
Alias: MONO74521
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Jackson Harper
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-08 19:18 UTC by Jain Ankit
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch file.. (481 bytes, patch)
2005-04-08 19:23 UTC, Thomas Wiest
Details | Diff
monodis-sqstring.patch (746 bytes, patch)
2005-04-19 14:55 UTC, Thomas Wiest
Details | Diff
updated patch (redone) (1.75 KB, patch)
2005-04-20 18:17 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:12:51 UTC


---- Reported by radical@gmail.com 2005-04-08 12:18:12 MST ----

monodis outputs:

newobj instance void class [mscorlib]System.'Int32[,]'::.ctor(int32, int32)

The Int32[,] is quoted.. ilasm's parser does not understand such a quoted
array.

Patch to monodis to NOT quote it.. 

After the patch:

newobj instance void class [mscorlib]System.Int32[,]::.ctor(int32, int32)



---- Additional Comments From radical@gmail.com 2005-04-08 12:23:00 MST ----

Created an attachment (id=167716)
Patch file..




---- Additional Comments From miguel@ximian.com 2005-04-09 15:20:10 MST ----

Jackson, can you comment if this is a limitation in our assembler, or
if this is a bug in Monodis?



---- Additional Comments From radical@gmail.com 2005-04-11 00:48:28 MST ----

A bug in our assembler.. 



---- Additional Comments From radical@gmail.com 2005-04-11 01:52:46 MST ----

Umm..correction.. not a bug in our assembler.

ildasm.exe by default seems to quote only things like

valuetype '<PrivateImplementationDetails>'/$ArrayType$0

Our assembler can handle this AND with all names quoted

ildasm.exe /quoteallnames

Monodis should follow one of the above approaches by default and maybe
have the other available as an option.
So, the patch improves the conformance to the first approach.



---- Additional Comments From miguel@ximian.com 2005-04-16 12:32:10 MST ----

Thanks.  This patch can be applied.



---- Additional Comments From rharinath@novell.com 2005-04-18 15:55:34 MST ----

Ankit and I discussed it, and deduced that it probably is a monodis
bug.  The quoting of Foo[,] should be

  'Foo'[,]

not

  'Foo[,]'

From what I could make out, the latter is an identifier named
'Foo[,]', quoted to prevent the special meaning of '['.

The original patch is incomplete, and I think we should instead fix
'get_escaped_name' to recurse down the ElementType before printing the
escaped name.



---- Additional Comments From radical@gmail.com 2005-04-19 07:55:49 MST ----

Created an attachment (id=167717)
monodis-sqstring.patch




---- Additional Comments From radical@gmail.com 2005-04-19 07:56:57 MST ----

Patch attached above is for the problem hari described.



---- Additional Comments From radical@gmail.com 2005-04-20 11:17:19 MST ----

Created an attachment (id=167718)
updated patch (redone)




---- Additional Comments From radical@gmail.com 2005-04-20 12:25:19 MST ----

Fixed in SVN.

Imported an attachment (id=167716)
Imported an attachment (id=167717)
Imported an attachment (id=167718)

Unknown operating system unknown. Setting to default OS "Other".