scalagwt/scalagwt-gwt — pull request #38 by gkossakowski (2012-04-07 17:50:43+00:00)
Title: Fix handling of empty array literals.

Basically, the logic handling NewArray
message confused two expressions:

Object[] foo = {}; //legal in Java
Object[] foo = new Object[]; //not legal

For NewArray encoding the first case it
would interpret it as second one and feed
it to GWT.

We can fix it by realizing that checking
getDimensionExprCount which determines
nature of NewArray. If it's equal to zero
we can be sure that NewArray message encodes
array literal.

Added documentation that explains how
different cases are encoded so others should
have easier time following logic processing
NewArray messages.

Also, added a test covering this case.

Fixes #33.