scalagwt/scalagwt-gwt — pull request #36 by gkossakowski (2012-04-06 21:51:40+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 need a special handling of this case that
this commit introduces.

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.