Hi all,
I have encountered a trap between java and javascript.
In Java I can do this:
ClassA{
public ClassA() {
doRead();
}
private int doRead();
}
ClassB extends ClassA{
protected int doRead();
}
If I call doRead() of ClassB then doRead() of ClassB is executed. If I
call the constructor new ClassB(), doRead() of ClassA is executed. So
in Java these two methods are completely different and independent
from each other.
I found out that in the compiled JavaScript code the doRead() method
of ClassB overwrites the method of ClassA and would be called in the
constructor call.
What do you think about this issue?
Best regards
Andi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---