• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Generics and 5.3.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generics and 5.3.3


  • Subject: Re: Generics and 5.3.3
  • From: Kieran Kelleher <email@hidden>
  • Date: Fri, 25 Jul 2008 08:05:08 -0400

Simple Answer: NSArray does not support generics in 5.3.3

However, Wonder ERExtensions framework has a patched NSArray which does support it. To use ERJavaMail, you need ERExtensions, ERJars and ERJavaMail IIRC. So put them all in your classpath and put ERExtensions before WebObjects foundation in classpath and NSArray generics should work.


On Jul 24, 2008, at 11:24 PM, Kevin Avoy wrote:

I upgraded to the 'Wonder-latest-Frameworks-53'.

I am using ERJavaMail.framework.

When I build my app, I get the error:
setToAddresses(com.webobjects.foundation.NSArray<java.lang.String>) in er.javamail.ERMailDelivery cannot be applied to (com.webobjects.foundation.NSArray)


When I attempt to define my array as a generic:
protected NSArray<String> toAddresses;

I get the error:
type com.webobjects.foundation.NSArray does not take parameters

Does NSArray support generics in 5.3.3?




_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Generics and 5.3.3 (From: Kevin Avoy <email@hidden>)

  • Prev by Date: Generics and 5.3.3
  • Next by Date: Unable to release locks held by deallocated EOEditingContext
  • Previous by thread: Generics and 5.3.3
  • Next by thread: Connection error when executing SQL generated command on EOModeler
  • Index(es):
    • Date
    • Thread