fmgasparino / google-gin

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

enum support is broken #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

this compiles OK:

Enum:
enum En {
A, B;
}

in GinModule:
public void configure(binder b) {
  b.bindConstant().annotatedWith(A.class).to(En.A);
  b.bindConstant().annotatedWith(B.class).to(En.B);
}

But this:
enum En {
A() {}, B() {};
}

Would result in exception

Using trunk Gin, Guice 2.0, GWT 1.6.4

Original issue reported on code.google.com by A.A.Vasi...@gmail.com on 1 Jul 2009 at 5:22

GoogleCodeExporter commented 9 years ago
Thanks for finding this error! I looked into it and wrote a fix, submitted for
review: http://codereview.appspot.com/90085

Original comment by aragos on 2 Jul 2009 at 4:02

GoogleCodeExporter commented 9 years ago
thanks! waiting for commit

Original comment by A.A.Vasi...@gmail.com on 2 Jul 2009 at 4:32

GoogleCodeExporter commented 9 years ago
Fixed in r109. Sorry for the delay!

Original comment by aragos on 31 Jul 2009 at 1:32