I've found this bug by accident, I don't normally use a single empty
statement in a labeled statement...! :-)
Change bargull-20110124-dSh by bargull@Bargull02 on 2011-01-24 15:36:33
in /home/anba/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: ensure block for statement in labeled statement
Bugs Fixed: LPP-9701 (Compiler must not omit EmptyExpression if single
child of LabeledStatement)
Technical Reviewer: ptw
QA Reviewer: (pending)
Details:
EmptyExpression results in an empty string, therefore LabeledStatement
needs to call ensureBlock() for its child.
Tests:
test case from bugreport
Files:
M WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/bargull-20110124-dSh.tar