RE: Replace "this" in *Impl-classes by "self()"?
"Aidan Slingsby" <[email protected]> Mon, 20 Mar 2006 15:11:00 -0000
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <[email protected]> |
I *think* this is only required if the method returns an ozone object, =
which
you'll have to typecast to the return type (which will be the =
interface). So
instead of
public MyOzoneObjectInterface returnItself(){
return this;
}
...it should be
public MyOzoneObjectInterface returnItself(){
return (MyOzoneObjectInterface)this.self();
}
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ronny Priv
Sent: 17 March 2006 22:29
To: [email protected]
Subject: [Ozone-users] Replace "this" in *Impl-classes by "self()"?
Hello, =20
=20
the userguide says every "this"-keyword in the *Impl-classes needs to be =
replaced by the "self()"-method.=20
=20
I tried that but javac complains because it doesn't know a self-method.=20
Is it a wrong or old information in the userguide?=20
=20
thanks=20
ronny=20
=20
--=20
Echte DSL-Flatrate dauerhaft f=FCr 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting =
language
that extends applications into web and mobile media. Attend the live =
webcast
and join the prime developer group breaking into this new coding =
territory!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D=
121642
_______________________________________________
Ozone-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ozone-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642