bugGNUstep - Bugs: bug #10934, May add a method to subclass of...

Group
 
 

bug #10934: May add a method to subclass of user class...

Submitter:  Gregory John Casamento <gcasa>
Submitted:  Sun 07 Nov 2004 01:00:12 PM UTC
   
 
Category:  Gorm Severity:  2 - Minor
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 08 Nov 2004 01:02:06 AM UTC, comment #3: 

Corrected.

Gregory John Casamento <gcasa>
Group administrator
Sun 07 Nov 2004 01:31:21 PM UTC, comment #2: 

To further clarify, what I'm talking about here is not concerning what would normally happen with inheritance.   The issue is that these methods will be saved as methods NewClass12 and NewClass123 in the data.classes file in the .gorm package when they shouldn't be.   They should only appear on NewClass1 in the data.classes file.

The user should still see them in the inspector and the outline view as methods on NewClass1 and it's subclasses, but the issue was with the data.classes file.

GJC

Gregory John Casamento <gcasa>
Group administrator
Sun 07 Nov 2004 01:17:54 PM UTC, comment #1: 

To clarify...

NewClass1 is the superclass...
   NewClass12 is a subclas of NewClass1...
      NewClass123 is a subclass of NewClass123

GJC

Gregory John Casamento <gcasa>
Group administrator
Sun 07 Nov 2004 01:00:12 PM UTC, original submission:  

If the user has a deep hierarchy of several classes such as:

NewClass1 <- NewClass12 <- NewClass123

Then when the user adds a method to NewClass1, it might improperly get added to NewClass12 and NewClass123. 

In practice this almost never happens since, most of the time, the classes inherit directly from a class like NSObject or NSView and don't have any subclasses of their own.

This is a minor problem as the resulting files present no problem when edited in Gorm.

GJC

Gregory John Casamento <gcasa>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-11-08 gcasa StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code