Issue 6850 in pharo: Adding instance variable to superclass bug

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 6850 in pharo: Adding instance variable to superclass bug

pharo
Status: Accepted
Owner: [hidden email]
Labels: Type-Bug Milestone-2.0 Importance-High

New issue 6850 by [hidden email]: Adding instance variable to  
superclass bug
http://code.google.com/p/pharo/issues/detail?id=6850

Evaluate this in workspace (you can do step by step if you want):

Object subclass: #Foo
        instanceVariableNames: ''
        classVariableNames: ''
        poolDictionaries: ''
        category: 'BBB'.

Foo subclass: #Bar
        instanceVariableNames: 'x'
        classVariableNames: ''
        poolDictionaries: ''
        category: 'BBB'.

Object subclass: #Foo
        instanceVariableNames: 'x'
        classVariableNames: ''
        poolDictionaries: ''
        category: 'BBB'.

the last one introduces 'x' variable into superclass,
and classbuilder swallows the new definition without any error, leading to  
two instance variables with same name in Bar subclass.

Bar allInstVarNames #('x' 'x')



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6850 in pharo: Adding instance variable to superclass bug

pharo
Updates:
        Status: Duplicate
        Mergedinto: 7218

Comment #1 on issue 6850 by [hidden email]: Adding instance variable  
to superclass bug
http://code.google.com/p/pharo/issues/detail?id=6850

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker