bqw5189 / closure-templates

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

Functions are destroyed by creating new injectors #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an Injector with a custom FunctionModule and a SoyModule
2. Create an Injector with just a SoyModule
3. Use custom function in the Injector that should have the custom 
FunctionModule.  It's not there.

Using latest, or the October 2011 version

Please provide any additional information below.
I've attache a JUnit 4 test that shows how creating a new injector breaks old 
ones.  As far as I know, Guice Injectors should be isolated from each other, so 
I'm guessing the SoyModule is doing something wrong?

The FunctionModule follows the examples suggested by the documentation.

Original issue reported on code.google.com by donny...@gmail.com on 11 Sep 2012 at 11:25

Attachments:

GoogleCodeExporter commented 9 years ago
Closure Templates has migrated to GitHub: 
https://github.com/google/closure-templates. Please reopen this there if it's 
still an issue.

Original comment by brendan....@gmail.com on 27 Feb 2015 at 12:10