Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Two identical FactoryParameter gets mapped to the same parameter instance #84

Open
pvdyck opened this issue Feb 14, 2014 · 3 comments
Open

Comments

@pvdyck
Copy link

pvdyck commented Feb 14, 2014

When using AutoFactory with two identical FactoryParameter, it gets mapped to the same parameter and the constructor is called with two times the same.

public TestClass(@FactoryParameter Object t1,@FactoryParameter Object t2)

t1==t2

I suppose you use a map ?

@adamw
Copy link
Member

adamw commented Feb 18, 2014

True, there's a map - see MethodParameterIndexer

@pvdyck
Copy link
Author

pvdyck commented Feb 19, 2014

Sorry, I don't use it anymore but it is obviously a bug and the unit test to show it is quite trivial (FYI).

@adamw
Copy link
Member

adamw commented Feb 19, 2014

Sure, thanks for the report! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants