[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #24784] Thread safety issue with NSCalendarDate...
From: |
Gregory John Casamento |
Subject: |
[bug #24784] Thread safety issue with NSCalendarDate... |
Date: |
Mon, 10 Nov 2008 05:44:22 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.14eol) Gecko/20070505 (Debian-1.8.0.15~pre080323b-0etch2) Epiphany/2.14 |
Follow-up Comment #3, bug #24784 (project gnustep):
For some reason when it reaches the following code in NSLog.m:
else
{
prefix = [NSString
stringWithFormat: @"%@ %@[%d] ",
---->> [[NSCalendarDate calendarDate]
descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F"],
[[NSProcessInfo processInfo] processName],
pid];
}
}
The line indicated calls the method to instatiate a calendarDate object, but
for some reason in that method it appears that an NSDate is being used. I'm
not sure why.
Here's the method that's being called:
+ (id) calendarDate
{
id d = [[self alloc] init];
return AUTORELEASE(d);
}
For some reason, self here is NSDate and NOT NSCalendarDate as one would
expect (given that it was invoked with NSCalendarDate as the class).
Is it possible that this is a thread safety issue in the runtime?
GC
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?24784>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/