Yeah, see, that's what I _thought_ but then when I tried to override:

public NSArray<LotCode> lotCodes() ... in my Part class

with

public NSArray<ManufacturedBatch> lotCodes() in my Intermediate class (subclass of Part)

I get Eclipse complaining: "The return type is incompatible with _Part.lotCodes()" with the suggested fix of changing the return type to: NSArray<LotCode>

That doesn't seem right. Does it?

Yes, I know I'm showing off my lack of Java knowledge. It's all WO's fault. It makes app development so easy that you can build great applications without fully understanding WTF is going on.

Dave

On Sep 4, 2008, at 1:46 PM, Mike Schrag wrote:

Of course a subclass can't override the return type of an inherited method. That's a Java rule, not a EOF rule.
Not ENTIRELY true ... you can override the return type to be a subclass of the parent classes' return type.

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to [EMAIL PROTECTED]



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to