R
Richard Ivarson
Hi,
how do I make javac to show deprecated API calls in my Java sourcecode
files? Reading javac's documentation tells me this feature is on per
default.
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javac.htmljavac -deprecation
Show a description of each use or override of a deprecated member or
class. Without -deprecation, javac shows the names of source files
that use or override deprecated members or classes.
<<<
However when for example I use a JPanel and call its "show()" method,
I don't get any decprecation warning from javac.
The JPanel documentation
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JPanel.html
says, that the show() method is inherited from class
java.awt.Container and there you can read:
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html#show()show()
Deprecated. As of JDK version 1.1, replaced by setVisible(boolean).
<<<
What am I getting wrong? Thanks.
-ric
how do I make javac to show deprecated API calls in my Java sourcecode
files? Reading javac's documentation tells me this feature is on per
default.
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javac.htmljavac -deprecation
Show a description of each use or override of a deprecated member or
class. Without -deprecation, javac shows the names of source files
that use or override deprecated members or classes.
<<<
However when for example I use a JPanel and call its "show()" method,
I don't get any decprecation warning from javac.
The JPanel documentation
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JPanel.html
says, that the show() method is inherited from class
java.awt.Container and there you can read:
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html#show()show()
Deprecated. As of JDK version 1.1, replaced by setVisible(boolean).
<<<
What am I getting wrong? Thanks.
-ric