Status: New
Owner: ----

New issue 353 by tregubov: Strange behavior on Inject Injector instance in  
Constructor
http://code.google.com/p/google-guice/issues/detail?id=353

I can't explain why and can't create little example with error. I try to
attach my project but system reject my submit. I can give all required
information. Can send my sources

Run ru.faulab.fmsgenerator.FMSRunTest.

Look on class ru.faulab.fmsgenerator.gui.GUI. It has unnecessary dependency
on FMSDocuments constructor

@Inject
public GUI(Injector parentInjector, FMSDocuments fmsDocuments)

BUT WHEN I REMOVE THIS DEPENDENCY like

@Inject
public GUI(Injector parentInjector)

I got the error

Exception in thread "main" com.google.inject.ProvisionException: Guice
provision errors:

1) No implementation for
java.util.Set<ru.faulab.fmsgenerator.core.document.DocumentTemplate> was
bound.
   while locating
java.util.Set<ru.faulab.fmsgenerator.core.document.DocumentTemplate>
     for parameter 0 at
ru.faulab.fmsgenerator.core.document.DocumentTemplateHolder.<init>(Document
TemplateHolder.java:20)
   while locating
ru.faulab.fmsgenerator.core.document.DocumentTemplateHolder
     for parameter 1 at
ru.faulab.fmsgenerator.gui.action.GenerateAction.<init>(GenerateAction.java
:30)
   at ru.faulab.fmsgenerator.gui.GUIModule.configure(GUIModule.java:29)
   at ru.faulab.fmsgenerator.gui.GUI.<init>(GUI.java:25)
   while locating ru.faulab.fmsgenerator.gui.GUI
   while locating ru.faulab.fmsgenerator.core.XUI

WHY???. Please Explain me. This is a bug or feature.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to