fmgasparino / google-gin

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

bind(X.class) without to() fails Guice validation if X is not concrete #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Unit test (and fix) to follow.

Essentially, if MyMessages is an interface that will be instantiated via
GWT.create:

    bind(MyMessages.class).asEagerSingleton();

leads to:

1) No implementation for com.google.gwt.inject.client.MyMessages was bound.
  at
com.google.gwt.inject.client.scopedimplicit.ScopedImplicitModule.configure(Scope
dImplicitModule.java:25)

Original issue reported on code.google.com by bstoler+code@google.com on 9 Jan 2009 at 3:04

GoogleCodeExporter commented 9 years ago

Original comment by bstoler+code@google.com on 9 Jan 2009 at 3:04

GoogleCodeExporter commented 9 years ago
Test and fix sent for review: http://codereview.appspot.com/11708

Original comment by bstoler+code@google.com on 9 Jan 2009 at 5:23

GoogleCodeExporter commented 9 years ago
Fixed in r76.

Original comment by bstoler+code@google.com on 9 Jan 2009 at 10:56