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
Priority:  5 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  gcasa Open/Closed:  Closed
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

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.16-ed84.
Corresponding source code