bug-gnustep
[Top][All Lists]
Advanced

[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:52:01 -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] Latest Modifications:

Changes by: 
                Willem Rein Oudshoorn <woudshoo@xs4all.nl>
'Date: 
                Fri 06/18/2004 at 12:51 (Europe/Amsterdam)

------------------ Additional Follow-up Comments ----------------------------
Sorry, I did not understand how to attach multiple files
in the submission.  So here is the patch.






/**************************************************************************/
[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.  


Follow-up Comments
------------------


-------------------------------------------------------
Date: Fri 06/18/2004 at 12:51       By: wim
Sorry, I did not understand how to attach multiple files
in the submission.  So here is the patch.






File Attachments
-------------------

-------------------------------------------------------
Date: Fri 06/18/2004 at 12:51  Name: libobjc-init.patch  Size: 1KB   By: wim
Patch of libobjcinit.c 
http://savannah.gnu.org/bugs/download.php?item_id=9379&amp;item_file_id=1411

-------------------------------------------------------
Date: Fri 06/18/2004 at 12:49  Name: loadTest.tar  Size: 10KB   By: wim
loadTest, program showing the problem
http://savannah.gnu.org/bugs/download.php?item_id=9379&amp;item_file_id=1410






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9379>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

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