JDK-6861094 : javac -Xprint does not print comments
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-07-15
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
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 b114Fixed
Related Reports
Relates :  
Description
failing test: apt/options/Xprint

javac -Xprint does not print out doc comment in source

---simple sourece for foo.java with a couple comments---
g:\ws\bugs]cat foo.java
/**  foo class */
public class foo {
  /** bar method */
  public void bar() { }
}
----Xprint output does not include comments------
g:\ws\bugs]javac -source 1.6 -Xprint foo.java

public class foo {

  public foo();

  public void bar();
}

Comments
EVALUATION This is fixed by 6877202, but will leave open to file a changeset for a test. Minor note: the -Xprint output is midly ugly, and should probably have a space after the * at the beginning of each line. The output from the test program here using the compiler from 6877202 is: /** *foo class */ public class Test { public Test(); /** *bar method */ public void bar(); }
22-09-2010