Ambigous createRequest() in ERXApplication???
Markus Ruggiero <[email protected]> Thu, 30 Dec 2010 17:42:17 +0100
| Newsgroups | gmane.comp.web.webobjects.woproject.devel |
|---|---|
| Message-ID | <[email protected]> |
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---