Generic interface is not processed

If you find any bugs, please post them here.

Generic interface is not processed

Postby hkesting » Thu Sep 24, 2009 1:42 pm

I get an errormessage in the output window:

Regionerate: Critical warning: Failed to Regionerate a interface starting with "public interface IDataEntityMapper<T> where T : class, new()". Exception information: System.InvalidCastException: Unable to cast object of type 'Rauchy.Regionerate.Domain.Entities.UnrecognizedCode' to type 'Rauchy.Regionerate.Domain.Entities.ContainerTypeCode'.
at Rauchy.Regionerate.ServiceLayer.Components.Services.DocumentService.ProcessType(Document document, String originalTypeText, Shaper shaper, String typeKind).


The "IDataEntityMapper<T>" is a generic interface, as you can expect from the name.

using version 0.7.0.0
hkesting
 
Posts: 4
Joined: Thu Sep 24, 2009 11:59 am

Re: Generic interface is not processed

Postby rauchy » Thu Sep 24, 2009 2:31 pm

hkesting,

Have you tried this with the latest nightly build?
-- rauchy.
rauchy
Site Admin
 
Posts: 268
Joined: Wed May 09, 2007 2:39 am
Location: Israel

Re: Generic interface is not processed

Postby hkesting » Thu Sep 24, 2009 3:20 pm

Then I get:

[15:12:53] Regionerate: Information: Starting to Regionerate a document.
[15:12:53] Regionerate: Information: Preparing for a type starting with " public interface IDataEntityMapper<T> where T : class, new()".
[15:12:53] Regionerate: Information: Constructing a interface starting with " public interface IDataEntityMapper<T> where T : class, new()".
[15:12:53] Regionerate: NonCritical warning: The following unrecognized piece of code was detected: "{
}", layout will not be applied on this code.
[15:12:53] Regionerate: Critical warning: Failed to Regionerate a interface starting with " public interface IDataEntityMapper<T> where T : class, new()". Exception information: System.InvalidCastException: Unable to cast object of type 'Rauchy.Regionerate.Domain.Entities.UnrecognizedCode' to type 'Rauchy.Regionerate.Domain.Entities.ContainerTypeCode'.
at Rauchy.Regionerate.ServiceLayer.Components.Services.DocumentService.ProcessType(String originalTypeText, Shaper shaper, String typeKind, HolyWarPreventionMode holyWarPreventionMode).
[15:12:53] Regionerate: Information: Completed Regionerating a document.


after changing the namespace in my config-xml.

There are two pairs of {} in that entire document: for the namespace and for the interface.

I wanted to attach the file, but .cs and .txt are not allowed as attachment.
hkesting
 
Posts: 4
Joined: Thu Sep 24, 2009 11:59 am


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron