PDA

View Full Version : bug in proxy method with "out" parameter ?



juflo
05-16-2008, 02:23 PM
Hi all

I have a method which is something like :


bool TryGetValue<T>(object key, out T value)

When it is used with TryGetValue<int> or TryGetValue<double> (I'm sure there are other value types with the same behaviour), the value returned in the "out value" parameter is completely random when using a proxified object, whereas the result is good when using good old instanciation (IMyClassInterface instance = new MyClass())

I found this post : http://forum.springframework.net/showthread.php?t=262&highlight=parameter+method+signature which seems to say that these ref/out parameters are supported, but it may not be the case.

Does anyone can confirm this or not ?

Thanks.

Bruno Baia
05-21-2008, 08:12 AM
Salut,

This is a bug (Jira issue SPRNET-641 (http://jira.springframework.org/browse/SPRNET-941))
I just committed a fix.


- Bruno

juflo
05-21-2008, 08:20 AM
Salut Bruno ;)

Thanks for fixing it ! :-D

Bruno Baia
05-28-2008, 09:22 AM
Salut,

Nightly builds are back online (with debug and release signed binaries) if you want to give a try ^^

- Bruno