• 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: WOApplication.primeApplication() deprecated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOApplication.primeApplication() deprecated


  • Subject: Re: WOApplication.primeApplication() deprecated
  • From: Kaj Hejer <email@hidden>
  • Date: Thu, 20 Nov 2003 10:21:40 +0100

At 17:44 -0800 19-11-03, Hsu wrote:
It is definitely a bug; thank you for filing it!


Ok :)

Could you please comment on the other issues (2, 3 and 4) in the email bellow?




On Nov 19, 2003, at 11:32 AM, Kaj Hejer wrote:

1)
There is a bug in the documentation on <url:http://developer.apple.com/documentation/WebObjects/Reference/API/com/webobjects/appserver/WOApplication.html#primeApplication(java.lang.String, java.lang.String, java.lang.String)>


Here is says:

primeApplication

public static void primeApplication(String mainBundleName,
                                    String mainBundlePath,
                                    String nameOfApplicationSubclass)

instead of primeApplication(String, URL, String)

This is now in radar as #3489508.


2)
At the url above any of the primeApplication methods are marked as deprecated.


Is this a bug in the doc?


3)
javac tells me that primeApplication(String, URL, String) also is deprecated. This is on osx 10.3.1 with WO5.2.2 and ant 1.5.3.
[javac] /Users/kajh/src/webobjects/nettskjema/src/NettskjemaTestCase.java:37: warning: primeApplication(java.lang.String,java.net.URL,java.lang.String) in com.webobjects.appserver.WOApplication has been deprecated
[javac] WOApplication.primeApplication("", new URL(""), "");



4) Until now we have used

WOApplication.primeApplication(
            NSBundle.mainBundle().bundlePath(), "Application");

in the setUp method of our junit testcases for WO apps.

NSBundle.mainBundle().bundlePath() is now deprecated, ref. <url:http://developer.apple.com/documentation/WebObjects/Reference/API/com/webobjects/foundation/NSBundle.html#bundlePath()>

What should we use instead in setUp?




At 20:09 -0800 13-11-03, Hsu wrote:
The should not both be deprecated - use primeApplication(String, URL, String)

Karl

On Nov 13, 2003, at 6:10 AM, Christian Pekeler wrote:

Yes, sorry, I meant primeApplication(String, String) and primeApplication(String, URL, String). Anyways, both are deprecated. What should I use instead?

Christian

There are 2 versions of primeApplication, taking different parameters.

I suppose WOApplication.primeApplication(String, String) has been
deprecated because it is path based. But what are we supposed to be
using instead? The documentation doesn't say anything.

It looks like WOApplication.primeApplication(String, String, String) is
new as of 5.2.2, and already also marked as deprecated. Could that be a
copy/paste mistake?
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


--

Occam was never the target of a conspiracy.

Homepage:
     http://homepage.mac.com/khsu/index.html
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >WOApplication.primeApplication() deprecated (From: Christian Pekeler <email@hidden>)
 >Re: WOApplication.primeApplication() deprecated (From: Hsu <email@hidden>)
 >Re: WOApplication.primeApplication() deprecated (From: Christian Pekeler <email@hidden>)
 >Re: WOApplication.primeApplication() deprecated (From: Hsu <email@hidden>)
 >Re: WOApplication.primeApplication() deprecated (From: Kaj Hejer <email@hidden>)
 >Re: WOApplication.primeApplication() deprecated (From: Hsu <email@hidden>)

  • Prev by Date: Re: NSObjectController
  • Next by Date: [SOLVED] How to upgrade 5.2.1 deployment to 5.2.2?
  • Previous by thread: Re: WOApplication.primeApplication() deprecated
  • Next by thread: Re: WOApplication.primeApplication() deprecated
  • Index(es):
    • Date
    • Thread