Re: Ambigous createRequest() in ERXApplication???
Anjo Krank <[email protected]> Thu, 30 Dec 2010 17:47:28 +0100
| Newsgroups | gmane.comp.web.webobjects.woproject.devel |
|---|---|
| Message-ID | <[email protected]> |
Once again, say thanks to Pierre for changing public API in a dot release for no good reason at all.
And override _createRequest() instead.
Cheers, Anjo
Am 30.12.2010 um 17:42 schrieb Markus Ruggiero:
> Folks,
>
> it may simply be too late after a long day but I cannot understand why Eclipse is having a problem with the following code fragment and what to do to fix it:
>
> This is in Application extends ERXApplication...
>
> public WORequest createRequest(String aMethod,
> String aURL,
> String anHTTPVersion,
> NSDictionary someHeaders,
> NSData aContent,
> NSDictionary someInfo) {
> if ("OPTIONS".equalsIgnoreCase(aMethod)) {
> System.err.println("Creating fudged request for OPTIONS: URL=" + aURL + ", headers=" + someHeaders);
> return new Request("GET", aURL, anHTTPVersion, someHeaders, aContent, someInfo);
> } else
> return super.createRequest(aMethod, aURL, anHTTPVersion, someHeaders, aContent, someInfo);
> }
>
> The method createRequest(String, String, String, NSDictionary, NSData, NSDictionary) is ambiguous for the type ERXApplication
>
> ERXApplication has two definitions for createRequest() and I think they have different signature. So what the heck am I missing here? Confused!
>
> Thanks
> ---markus---
>
>
>