You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by "Jerry Shea (JIRA)" <de...@avalon.apache.org> on 2004/11/08 07:36:32 UTC
[jira] Created: (AVNSHARP-8) ProxyGenerator throws System.ExecutionEngineException on executing a generated Guid property
ProxyGenerator throws System.ExecutionEngineException on executing a generated Guid property
--------------------------------------------------------------------------------------------
Key: AVNSHARP-8
URL: http://nagoya.apache.org/jira/browse/AVNSHARP-8
Project: Avalon Castle
Type: Bug
Environment: Windows XP SP2, .NET FW 1.1.4322.573
Reporter: Jerry Shea
Assigned to: hamilton verissimo
First, well done for a fantastic job with the DynamicProxy code! Unfortunately I have found a bug which is beyond my knowledge of generated IL - I am trying to generate a DynamicProxy for a class which has a Guid property.
Try pasting this code at the bottom of CustomProxyGeneratorTestCase. When you run it it will throw an System.ExecutionEngineException when it executes the last line i.e. when it tries to execute inter.GooId.
public class GuidClass {
public virtual Guid GooId {
get { return Guid.NewGuid(); }
}
}
[Test]
public void ProxyForClassWithGuidProperty() {
object proxy = m_generator.CreateClassProxy(
typeof(GuidClass), new ResultModifiedInvocationHandler( new GuidClass() ) );
Assert.IsNotNull( proxy );
Assert.IsTrue( typeof(GuidClass).IsAssignableFrom( proxy.GetType() ) );
GuidClass inter = (GuidClass) proxy;
Assert.IsNotNull( inter.GooId );
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org