[Laszlo-dev] UPDATED For Review: Change 20090102-hqm-r Summary: fix null pointer error in <switch> statement

Henry Minsky henry.minsky at gmail.com
Fri Jan 2 15:11:08 PST 2009


Change 20090102-hqm-r by hqm at badtzmaru.home on 2009-01-02 18:06:10 EST
     in /Users/hqm/openlaszlo/trunk4
     for http://svn.openlaszlo.org/openlaszlo/trunk


Summary: fix null pointer error in <switch> statement

New Features:

Bugs Fixed: LP-6982

Technical Reviewer: andre
QA Reviewer: promanik
Doc Reviewer: (pending)

Documentation:

Release Notes:

<switch> statement now supports an <unless> clause

example:

<switch>
  <unless property="$dhtml">
     [lzx code to be included]
  </unless>
</switch>


Details:

+ initialize compile time constants table before running the parser

+ the parser checks for  overrides of 'debug' and 'profile' on the  
canvas element,
(e.g., <canvas debug="xx" profile="yyy">)  before it evaluates any  
<switch> statements

+ added <unless> clause

Tests:

test case from bug report, and case from review

<canvas debug="true" >
  <handler name="oninit" >
    txt.addFormat("$debug = %w", $debug === true);
  </handler>
  <text id="txt" />
</canvas>

works in swf8,swf9,swf10, dhtml

Files:
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/Parser.java


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090102-hqm-r.tar


More information about the Laszlo-dev mailing list