Can't get rid of Deprecated Warnings when implementing HttpSession
We are implementing HttpSession, for a mock object for testing. However, it has methods that access a deprecated class (HttpSessionContext). Although we mark our implementation of the method that accesses this class (getSessionContext) with the annotation @Deprecated, we still get two error messages as follows:
Warning:Warning:line (8)[deprecation] javax.servlet.http.HttpSessionContext in javax.servlet.http has been deprecated
One warning comes up on the import line for the interface HttpSessionContext, and one on the declaration of the getSessionContext method.
We are using Java 5, with the -deprecation flag.
Is there no way to get rid of these warning messages every time we compile? (We can't turn off the flag just for this one class, because we are compiling from within an IDE (IDEA) that doesn't seem to give us that option.)
Thanks.
-
Dan Cooperstock, Senior Software Developer, Quest Software
260 King St. E., Toronto ON Canada M5A 4L5
dan.cooperstock@quest.com416-933-5165
With Quest Software, you get more ... more performance, more productivity, more value from your IT investments.
Visit www.quest.com to learn more.

