• 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: how do I "recompile with deprecation" ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do I "recompile with deprecation" ?


  • Subject: Re: how do I "recompile with deprecation" ?
  • From: Denis Stanton <email@hidden>
  • Date: Tue, 27 Jan 2004 14:32:48 +1300

Excellent!  Thank you for this last missing piece.

setting 'show usage of deprecated API' checkbox in the Java Compiler Setting panel for the "Application Server" target, and performing a clean before compiling reveals that localTimeZone() is the deprecated code in NSTimeZone

I don't know why this warning message was so discretely hidden from me, but now at last I can see it thanks to your inspiration.

Denis

On Tuesday, January 27, 2004, at 01:18 PM, Jonathan Rochkind wrote:

I am using Project Builder (OSX 10.2.8, WO 5.2.1), not XCode. But I just figured this out five minutes ago; it's likely the same for XCode. The trick was, you need to check the 'show usage of deprecated API' checkbox in the "Application Server" target, not in the main project target.

--Jonathan

At 5:36 PM +1300 1/23/04, Denis Stanton wrote:
Hi Rob

However, in my test, it didn't show me which line(s) contained the deprecated code. It just said it was in "Main.java:0". It was in Main.java, but it wasn't on line 0

yes, that's what I got. In fact I go the earning telling me which file was responsible, and pointing to line 0 before I set the ""Show usage of deprecated API" checkbox.


I was hoping there was some trick I had missed to get it to go beyond that message, which amounts to "we found something dubious in your source code, but we're not going to tell you where"

I have not previously filed a bug report with Apple. I guess it's time I started.

thanks for your help

Denis


On Friday, January 23, 2004, at 05:11 PM, Rob Lockstone wrote:

Hmmmm, looks like a bug.

I inserted some code I knew would trigger the deprecated warning and checked the "Show usage of deprecated API" checkbox. (Not sure how I missed that in my original reply, sorry.)

If you go to the main project window and click on the "Errors and Warnings" group in the left panel, it will tell you which file contains the deprecated code. However, in my test, it didn't show me which line(s) contained the deprecated code. It just said it was in "Main.java:0". It was in Main.java, but it wasn't on line 0.

You should file this as a bug against Xcode.

Rob

On Jan 22, 2004, at 18:44, Denis Stanton wrote:

Hi Rob

On Friday, January 23, 2004, at 02:44 PM, Rob Lockstone wrote:

I haven't tried this, but I would imagine you can just add it to your Target.

Highlight the desired Target. Go to the Settings->Simple View->Java Compiler Settings. There's a box labeled "Other Java Compiler Flags". Put -deprecation in there. Not sure if you need the leading dash or not.

Thanks for the suggestion. It sounds right, but so far it doesn't seem to make any difference.


I have added -deprecation to the Other java Compiler Flags box and recompiled. The build log (if that's the right term for the window that shows messages like "Building target "Hire" with build style........ does not mention deprecation. Nothing seems to have changed.

Wait...... I see the Java Compiler Settings panel has a check box "Show usage of deprecated API" (I was previously looking at the GCC Compiler Settings Panel so I didn't see this before)
This looks promising, though I think the warning message could have been more helpful in directing me to this checkbox.


later.
OK, so I've compiled again with this checkbox checked. If the compiler is "showing usage of deprecated API" it is showing it somewhere out of my sight. I have Show Detailed Build results on, but the window just has the usual "Building Target", "Running custom shell script" messages, followed by "Build succeeded


Denis
_______________________________________________
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.


Denis Stanton
email@hidden
Home: +64 9 533 0391
mobile: +64 21 1433622
_______________________________________________
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.


Denis Stanton
email@hidden
Home:  +64 9 533 0391
mobile: +64 21 1433622
_______________________________________________
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: 
 >Re: how do I "recompile with deprecation" ? (From: Jonathan Rochkind <email@hidden>)

  • Prev by Date: WebServices & .NET (was EO & WebServices)
  • Next by Date: Re: Objective-C with WebObjects?
  • Previous by thread: Re: how do I "recompile with deprecation" ?
  • Next by thread: Re: how do I "recompile with deprecation" ?
  • Index(es):
    • Date
    • Thread