frjaeger220 / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

AssistedInject: Factory does not support twice the same assisted type in parameters #448

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As the title says: twice the same type with @Assisted causes Guice to fail.

interface MyFactory {
  Object create(String s, String t);
}

See file in attachment for full test case.

Original issue reported on code.google.com by ogregoire on 18 Nov 2009 at 12:26

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, it seems that indeed this feature exists. Please document it in the Wiki: 
it is
mentionned only in the comments as a feature request. I found confirmation by 
looking
in the code, since the @Assisted javadoc is not accessible from the default 
javadoc page.

Original comment by ogregoire on 18 Nov 2009 at 12:52

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 18 Nov 2009 at 5:45

GoogleCodeExporter commented 9 years ago
Indeed the issue is invalid, but please make the documentation of the feature
available for all (the hidden javadoc is not accessible from the javadoc link 
on the
main page).

Original comment by ogregoire on 18 Nov 2009 at 9:27