Skip to content

Conversation

@turnef
Copy link

@turnef turnef commented Jan 23, 2021

Invoking the getProvider() method on an InstanceBinding in Guice versions 4.2 or later result in a runtime exception as documented in this issue: #12

This pull request addresses the issue by using a BindingTargetVisitor to interrogate the InstanceBinding and retrieve the bound String value. I'm not sure this is the best way to correct the problem, but the existing unit tests pass when linked against Guice 4.2.3 and Guava 30.1-jre, as well Guice 4.0 and Guava 18.0 as defined in the current pom.xml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants