CMertens / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

The "repeated data" check in MetaType.AddSubType and MetaType.SetSurrogate treats strings as collections. #212

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to declare a surrogate type for the string type.

What is the expected output? What do you see instead?
Expected - works.
Actual - SetSurrogate fails, because it thinks that string is repeated data.

What version of the product are you using? On what operating system?
rev 437

Please provide any additional information below.
I think strings should not fail the repeated data check, because string is not 
char[].

Original issue reported on code.google.com by mark.kha...@gmail.com on 26 Jul 2011 at 1:49

GoogleCodeExporter commented 9 years ago
You are quite right. It should fail with a different error message - about not 
being able to subvert the core types.

Original comment by marc.gravell on 27 Jul 2011 at 10:06

GoogleCodeExporter commented 9 years ago
Which is until http://code.google.com/p/protobuf-net/issues/detail?id=175 is 
fixed, right?

Envoyé de mon iPhone

Le 27 ביול 2011 à 13:06, protobuf-net@googlecode.com a écrit :

Original comment by mark.kha...@gmail.com on 27 Jul 2011 at 2:30