Bug 103629 - Fix the build after r136095
Summary: Fix the build after r136095
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andrei Bucur
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-29 04:30 PST by Andrei Bucur
Modified: 2012-11-29 10:23 PST (History)
4 users (show)

See Also:


Attachments
Patch (1.47 KB, patch)
2012-11-29 04:39 PST, Andrei Bucur
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Bucur 2012-11-29 04:30:17 PST
WebKit doesn't compile due to a type error.
Comment 1 Andrei Bucur 2012-11-29 04:39:38 PST
Created attachment 176701 [details]
Patch
Comment 2 jochen 2012-11-29 05:00:04 PST
Comment on attachment 176701 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=176701&action=review

> Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.mm:97
> +            [NSException raise:NSInvalidArgumentException format:@"Can not encode objects of class type '%@'", static_cast<NSString *>(NSStringFromClass([m_root class]))];

that's most certainly the wrong fix. I think instead, this file should #import <Foundation/Foundation.h>
Comment 3 Andrei Bucur 2012-11-29 05:30:27 PST
(In reply to comment #2)
> (From update of attachment 176701 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=176701&action=review
> 
> > Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.mm:97
> > +            [NSException raise:NSInvalidArgumentException format:@"Can not encode objects of class type '%@'", static_cast<NSString *>(NSStringFromClass([m_root class]))];
> 
> that's most certainly the wrong fix. I think instead, this file should #import <Foundation/Foundation.h>

Tried it and this is not the issue. You can put the NSStringFromClass return value in a NSString variable and then pass that to the formatter and it will work. I like this fix more though.
Comment 4 Alexey Proskuryakov 2012-11-29 10:04:56 PST
Comment on attachment 176701 [details]
Patch

Failing on Lion and Mountain Lion bots. I can't reproduce locally, and have no idea why this fails, but we have to get it building again.

/Volumes/Data/slave/mountainlion-debug/build/Source/WebKit2/Shared/mac/ObjCObjectGraphCoders.mm:97:107: error: format specifies type 'id' but the argument has type '<dependent type>' [-Werror,-Wformat]
Comment 5 WebKit Review Bot 2012-11-29 10:23:20 PST
Comment on attachment 176701 [details]
Patch

Clearing flags on attachment: 176701

Committed r136141: <http://trac.webkit.org/changeset/136141>
Comment 6 WebKit Review Bot 2012-11-29 10:23:23 PST
All reviewed patches have been landed.  Closing bug.