Re: how do I "recompile with deprecation" ?
Re: how do I "recompile with deprecation" ?
- Subject: Re: how do I "recompile with deprecation" ?
- From: Robert Walker <email@hidden>
- Date: Mon, 26 Jan 2004 20:19:39 -0500
Yes it does work in XCode checking the "Show deprecation warnings" flag
on the Application target. You also need to put the [-deprecation] in
the other arguments box as well if you want to see the details of the
deprecation warnings. The flag simply produces a warning telling you
that you have deprecated methods, but doesn't tell you which ones.
On Jan 26, 2004, at 7: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.
_______________________________________________
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.
--
Sincerely,
Robert Walker
_______________________________________________
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.