Thomas Tempelmann wrote:
I have not looked into this deeper yet, but here's what I see happening:
I have a Class A, and a Subclass B.
Class A defines a protected property "x", while the subclass has no
such property itself.
In a method of the subclass B, I write:
super.x = something
Now, in my rather complex app, I found that the class A would not find
the property "x" assigned with the value.
But if I only make this single change:
me.x = something
Then the super class sess its property "x" changed.
How can this possibly be? To me, this looks like a bug.
Yep, I can confirm this. Here are my results.
If, in class B, you set super.x to something then methods from both A
and B cannot see x has having changed. But if, from class B, you return
super.x you do get the value set earlier (totally nuts!)
Now, if you set B.x to something then from methods in both A and B you
can get this value back, as expected. But you cannot get this value
from methods in B by referencing super.x.
It's as if super.x is an entirely different variable from A.x or B.x and
can only be referenced via super.x.
Have you created a bug report for this?
jp
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>