JDK-6572945 : javah should be written as an annotation processor, not a doclet
  • Type: Bug
  • Component: tools
  • Sub-Component: javah
  • Affected Version: 6,7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-06-22
  • Updated: 2011-07-15
  • Resolved: 2011-07-15
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 7
7 b74Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
javah is internally written as a doclet. These days, it would be better written as an annotation processor.

This would help fix related issues, like it giving javadoc-like errors, and JSR199 adoption.

Comments
EVALUATION "Translated" existing doclet to an annotation processor. A better followup would be a total rewrite. As well as new tests provided, testing included full build/rebuild of JDK on all JPRT platforms, and comparison of output for old javah and new javah on all classes in rt.jar with native methods.
24-09-2009