[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bugs #9379] libobjc does not call all the +load methods defined in cate

From: Willem Rein Oudshoorn
Subject: [bugs #9379] libobjc does not call all the +load methods defined in categories
Date: Fri, 18 Jun 2004 08:49:16 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030718

This mail is an automated notification from the bugs tracker
 of the project: GNUstep.

[bugs #9379] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9379>
Project: GNUstep
Submitted by: Willem Rein Oudshoorn
On: Fri 06/18/2004 at 12:49

Category:  None
Severity:  1 - None
Item Group:  Bug
Resolution:  None
Assigned to:  None
Status:  Open

Summary:  libobjc does not call all the +load methods defined in categories

Original Submission:  According to the specs when loading a category the  
+load method should be called (when defined).

This is not the case.  The attached program does show this.

The reason is that the runtime keeps track which modules
are loaded.  This list is used to determine if a +load
message should be sent.  However if a class "A" is defined
in the first module and a category "A(C)" in a later module
the runtime will think it does not need to send the 
load anymore.

Also attached is a patch which will fix this.  
However, I someone (Nicola?) should take a look at this
patch, becuase there might be a more generic mechanism
to solve this problem.  

Finally, this also happens with the libobjc runtime of
gcc 3.2.1 (and I guess with other versions as well.)

But before I download gcc and fix it in the gcc source
I hope that someone can tell me which gcc version to
look at.  

File Attachments

Date: Fri 06/18/2004 at 12:49  Name: loadTest.tar  Size: 10KB   By: wim
loadTest, program showing the problem

For detailed info, follow this link:

  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]