Re: how do I "recompile with deprecation" ?
Re: how do I "recompile with deprecation" ?
- Subject: Re: how do I "recompile with deprecation" ?
- From: Rob Lockstone <email@hidden>
- Date: Thu, 22 Jan 2004 20:11:57 -0800
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.
_______________________________________________
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.