icubilla / jsonexserializer

Automatically exported from code.google.com/p/jsonexserializer
0 stars 0 forks source link

Constructor Type detection is not very robust #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Given the following json string: new StringMessage("Information",
"messageName")

and the following constructors:

public StringMessage(MessageType type, string MessageName);
public StringMessage(MessageType type, MessageName MessageName);

The 2nd constructor is attempting to be used instead of the first one and
results in cast error.

Original issue reported on code.google.com by elliott....@gmail.com on 27 Feb 2008 at 6:03

GoogleCodeExporter commented 9 years ago
The deserializer will use a combination of the available constructors, any casts
present on the constructor arguments and the "defined" arguments in the 
metadata for
the class to figure out the correct constructor.

Original comment by elliott....@gmail.com on 2 Jul 2008 at 10:18

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 2 Jul 2008 at 10:20

GoogleCodeExporter commented 9 years ago

Original comment by elliott....@gmail.com on 10 Jul 2008 at 5:02