This code cause a StackOverflowException if there is no entity with this key.

string keyString = "123456:Test.MyEntity";
Key key = Key.Parse(keyString);
TypeInfo typeInfo = key.Type;

Easy workaround: use Query.Single(key).TypeInfo instead.

Could you fix this bug, or at least throw an exception in that case?

Another minor remark the "Key.Type" is a bit incoherent because it is of type "TypeInfo".

EDIT: version 4.3.5 build 6600

asked Nov 10 '10 at 04:16

olorin's gravatar image

olorin
358848792

edited Nov 10 '10 at 05:48

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412


One Answer:

To be fixed. Issue 845 is created.

answered Nov 10 '10 at 05:51

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412

The bug is fixed.

(Nov 12 '10 at 07:52) Alex Yakunin Alex%20Yakunin's gravatar image

Btw, today's update of DO4 (build 6698) fixes it, as well as a set of other bugs mentioned here.

(Nov 17 '10 at 17:11) Alex Yakunin Alex%20Yakunin's gravatar image

It can be downloaded both from old and new locations.

(Nov 17 '10 at 17:13) Alex Yakunin Alex%20Yakunin's gravatar image

You mentioned a list of fixed bugs in latest build : where can I find them? I would rather update only if there are bug fixes I need. (All team members must update)

(Nov 18 '10 at 04:40) olorin olorin's gravatar image

Agree with olorin, already asked same question few days earlier in here. We want list of bug fixes assigned to specified build rev.

(Nov 18 '10 at 09:12) Peter Ĺ ulek Peter%20%C5%A0ulek's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA