History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-977
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Marcus Griep
Reporter: Spruce Weber
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

compiler error on referencing inherited member of generic subclass instance

Created: 03/Mar/08 04:51 PM   Updated: 23/Mar/08 11:45 PM
Component/s: Compiler
Affects Version/s: 0.8.1
Fix Version/s: 0.8.2

Time Tracking:
Not Specified

File Attachments: 1. Text File GenericConstructedType.cs.patch (0.4 kb)

Environment:
Windows XP
.Net 2.0

Testcase included: yes
Patch Submitted: Yes


 Description  « Hide
class Class[of T]:
pass

print c.ToString()

Error BCE0055: Internal compiler error: Operation is not valid due to the current state of the object..

The attached patch causes GenericConstructedType.Resolve() to check if an entity really should be mapped before trying to pass it to GenericMapping.Map(). But now that I think about it, this issue can occur in other places. So maybe GenericMapping should be responsible for doing that checking so that such checks are localized to one place. GenericMapping.Map() may also be where BOO-973 can be fixed.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Spruce Weber - 04/Mar/08 01:59 PM
This patch fixes the issue by modifying the method GenericConstructedType.Resolve() to use GenericMapping.EntityNeedsMapping() (which was added as a patch to fix BOO-973) in order to determine if an entity needs to be mapped.

Marcus Griep - 23/Mar/08 11:45 PM
Committed revision 2885