Change 20080328-hqm-S by [EMAIL PROTECTED] on 2008-03-28 11:59:21 EDT
    in /Users/hqm/openlaszlo/trunk4
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: check if override needed on method declarations in classes

New Features:

Bugs Fixed:

Technical Reviewer: ptw (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:


Tests:

<canvas width="1000" height="600" bgcolor="#eeeeff">
  <class name="foobar" >
    <handler name="onclick">
      this.b1.animate("x", -50, 1000, true);
      this.b3.animate("x", 50, 1000, true);
    </handler>
    <view name="b1" width="50" height="50" bgcolor='red'/>
    <view name="b2" x="60" width="50" height="50" bgcolor='yellow'/>
    <view name="b3" x="120" width="50" height="50" bgcolor='blue'/>
    <method name="doit">
      lzconsole.write('foobar.doit()');
    </method>
  </class>

  <text>3 &lt;foobar&gt;</text>
  <foobar id="f1" x="100"/>
  <foobar id="f2" x="200" y="60"/>
  <foobar x="300" y="120"/>

  <class name="baz" extends="foobar">
    <method name="doit">
      lzconsole.write('baz.doit()');
    </method>

  </class>

  <text y="200" >3 &lt;baz&gt;</text>
  <baz id="b1" x="100" y="200"/>
  <baz x="200" y="260"/>
  <baz x="300" y="320"/>


</canvas>

should compile without error, and you
can call f1.doit(), b1.doit() from the debugger

Files:
M      test/compiler_errors/override-builtin.lzx
M      WEB-INF/lps/schema/lfc.lzx
M      WEB-INF/lps/server/src/org/openlaszlo/sc/Function.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/ClassCompiler.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/AttributeSpec.java


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080328-hqm-S.tar

Reply via email to