JDK-8152360 : deprecate javah
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javah
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-03-21
  • Updated: 2016-09-16
  • Resolved: 2016-05-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b121Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
The javah tool has been superseded by the "javac -h" feature, and so should be deprecated, and eventually removed.
Comments
Suggested message for javah: javah.misc.Deprecation=\ \nwarning:\u0020The javah tool is planned to be removed in the next \n\ major JDK release. The tool has been superseded by the ''-h'' option addedn\ to javac in JDK 8. Users are recommended to migrate to using the javac ''-h''\n\ option; see the javac man page for more information.\n
21-03-2016

Initially, the work to deprecate javah should simply consist of writing out a message when javah is used. Here is an example of such a message, when the apt was deprecated with a view to its removal: http://hg.openjdk.java.net/jdk7/jdk7/langtools/file/ce654f4ecfd8/src/share/classes/com/sun/tools/apt/resources/apt.properties#l114 apt.misc.Deprecation=\ \nwarning:\u0020The apt tool and its associated API are planned to be\n\ removed in the next major JDK release. These features have been\n\ superseded by javac and the standardized annotation processing API,\n\ javax.annotation.processing and javax.lang.model. Users are\n\ recommended to migrate to the annotation processing features of\n\ javac; see the javac man page for more information.\n
21-03-2016