JDK-4683801 : Impossible to implement PreparedStatement without deprecation warnings
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2002-05-13
  • Updated: 2002-05-13
  • Resolved: 2002-05-13
Related Reports
Duplicate :  
Description

Name: rmT116609			Date: 05/13/2002


FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

DESCRIPTION OF THE PROBLEM :
Compilers should not issue a deprecation warning if one implements a interface which contains deprecated methods.

For instance if I implement java.sql.PreparedStatement then I get a warning for implementing the method setUnicodeStream(...) but I have no choice not to implement them.

http://java.sun.com/j2se/1.4/docs/api/java/sql/PreparedStatement.html#setUnicodeStream(int, java.io.InputStream, int)

(Review ID: 146493) 
======================================================================