kohlhaas / google-gin

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

Throw meaningful error for type mismatch on GWT.create #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When instantiating type T through GWT.create() we assume the resulting
object to be an instance of T. This behaviour is not guaranteed by GWT
however. We should throw a meaningful error message (at runtime) when we
detect a mismatch.

Right now the generated code will throw a ClassCastException at runtime.

Original issue reported on code.google.com by aragos on 12 Apr 2010 at 7:56

GoogleCodeExporter commented 9 years ago
Submitted for review at: http://codereview.appspot.com/1674048

Original comment by aragos on 7 Jul 2010 at 3:41

GoogleCodeExporter commented 9 years ago
Submitted in r145.

Original comment by aragos on 22 Jul 2010 at 1:41