dart-archive / eclipse3

DEPRECATED - NO LONGER maintained/supported - Eclipse plugins and Dart Editor
8 stars 6 forks source link

Debugger incorrectly display values of the inherited public members #48

Open DartBot opened 9 years ago

DartBot commented 9 years ago

Originally opened as https://github.com/dart-lang/sdk/issues/22422

This issue was originally filed by @mezoni


I am about the member "i".

============ void main() {   var o = new Child();   o.foo(); }

class Base {   dynamic i;

  foo() {     print(i);   } }

class Child extends Base {   int i;

  Child() {     i = 5;   } } ============

See "Screen 1":

In "Child" instance it has value "5". In "Base" instance it also has value "5" because it inherited by "Child".

Debugger display: Child.i : 5 Base.i : null

But at the same time when we print it from "Base" then it print 5.

See "Screen 2": 5 5


Attachment: [Screen 2](https://storage.googleapis.com/google-code-attachments/dart/issue-22422/comment-0/Screen 2) (246.89 KB)

DartBot commented 9 years ago

Comment by iposva-google


Added Area-Editor, Triaged labels.

DartBot commented 9 years ago

Comment by clayberg


Set owner to @devoncarew. Removed Priority-Unassigned label. Added Priority-Medium label.