Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

More than one type with same name

#10

I'm having an issue where I've got more than one type with the same name in my assembly.

e.g. Domain.User DTO.User

The problem arises in the TypeGenerator.Add method when we're processing the second of the two. The "matchedAssociations" finds an existing key and moves on, rather than adding the second one appropriately. After this happens, members from the second (DTO.User) start getting added to the first (Domain.User) and things start to break.

Looks like the identifiers used as the key of the "matchedAssociations" needs more resolution than the type name (e.g. User) to include the full name (e.g. Domain.User or DTO.User).

I'll look into it more tonight, and may be able to provide a patch.

Reported by Jon Fuller · March 31st, 2009 @ 07:49 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Jon Fuller
    Jon Fuller

    After some further investigation, and a little tweaking I got it to work, but managed to break several tests in the process. I can't tell if the tests should be changed, or if my change is a breaking change. Either way, please find attached a diff with my change and a test.

    April 1st, 2009 @ 03:02 AM

  2. James Gregory
    James Gregory

    Great, thanks for reporting this (and the patches). I've been out of town so haven't been monitoring tickets, I'll investigate these as soon as possible.

    April 20th, 2009 @ 11:47 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.