[Laszlo-dev] States example
Henry Minsky
henry.minsky at gmail.com
Thu Nov 8 10:44:30 PST 2007
I'm still seeing it also, I'll file a bug and look at this also.
On Nov 8, 2007 12:44 PM, Lou Iorio <liorio at laszlosystems.com> wrote:
> I did that, and I'm still getting the compile warning.
>
>
>
> On Nov 8, 2007, at 1:21 PM, Henry Minsky wrote:
>
> > Oh, sounds like you're already building from sources. Yes, just svn
> > update, and do an ant build.I usually do
> >
> > ant webapp.undeploy build webapp.deploy
> >
> > to make sure the servlet is updated in tomcat.
> >
> > I'm working on the other bug you reported, with the htmlview example.
> >
> >
> > On Nov 8, 2007 12:01 PM, Lou Iorio <liorio at laszlosystems.com> wrote:
> >> Happily, if I knew how to do that.
> >> On Nov 8, 2007, at 9:22 AM, Henry Minsky wrote:
> >>
> >>> That should be fixed now in the trunk , can you try it in a nightly
> >>> trunk build?
> >>>
> >> Happily, if I knew how to do that. Is that different from svn update/
> >> build?
> >> I'm at revision 7193.
> >>
> >> Lou
> >>
> >>> On Nov 8, 2007 6:51 AM, Lou Iorio <liorio at laszlosystems.com> wrote:
> >>>> In Chapter 32. States, example 32.5. Using setters in <state>
> >>>> attributes:
> >>>>
> >>>> <canvas debug="true">
> >>>> <class name="testState" extends="state">
> >>>> <attribute name="countApplies" value="0"
> >>>> setter="this.countApplies = countApplies"/>
> >>>> <method name="apply">
> >>>> this.setAttribute('countApplies', ++this.countApplies);
> >>>> super.apply();
> >>>> </method>
> >>>> </class>
> >>>> <button >Try it
> >>>> <handler name="onclick">
> >>>> ts.apply();
> >>>> Debug.write("applies:" + ts.countApplies);
> >>>> ts.remove();
> >>>> </handler>
> >>>> <testState name="ts"/>
> >>>> </button>
> >>>> </canvas>
> >>>>
> >>>> The compiler complains:
> >>>>
> >>>> states-$5.lzx:3:43: In class 'testState' attribute 'apply' with
> >>>> type
> >>>> 'method' is overriding superclass attribute with same name but
> >>>> different
> >>>> type: expression
> >>>>
> >>>> This example worked in OL 3.4. What do I do to make this error go
> >>>> away?
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Lou
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Henry Minsky
> >>> Software Architect
> >>> hminsky at laszlosystems.com
> >>
> >>
> >
> >
> >
> > --
> > Henry Minsky
> > Software Architect
> > hminsky at laszlosystems.com
>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list