ResourceShapeFactory.TYPE_TO_VALUE_TYPE

Jul 31, 2013 at 4:21 PM
The TYPE_TO_VALUE_TYPE dictionary does not contain any entries for nullable types, so the lookups fail for ChangeRequest.approved, etc etc.

The lookups themselves seem to be incorrect too. ResourceShapeFactory.GetDefaultValueType checks for ValueType.Unknown, but if the lookup fails a KeyNotFoundException is thrown before this check can be performed. (Plus of course ValueType.Unknown is never actually stored in the dictionary.)