Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003782 [Squeak 3.8] minor always 06-08-06 06:28 06-08-06 06:28
Reporter emerson View Status public  
Assigned To
Priority normal Resolution open  
Status new  
Summary 0003782: No warning when instance variable removed from class definition
Description If you remove an instance variable from a class definition, you get no warning that it is referenced:

Object subclass: #Behavior
    instanceVariableNames: 'superclass methodDict format'
    classVariableNames: 'ObsoleteSubclasses'
    poolDictionaries: ''
    category: 'Kernel-Classes'

Try removing superclass, for example. This instance variable is used, so it should at least warn you that superclass will be moved to Undefined.
Additional Information I've included a patch for this bug which mimicks what happens when you remove an instance variable using the RefactoringBrowser (although it does not depend on the RefactoringBrowser).

When you remove an instance variable that is referenced, it asks if you want to browse references, and then aborts the save. Otherwise, it continues the save.
Attached Files  InstVarRemovalFix.1.cs [^] (3,391 bytes) 06-08-06 06:28

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
06-08-06 06:28 emerson New Issue
06-08-06 06:28 emerson File Added: InstVarRemovalFix.1.cs


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
29 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker