Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6861094

javac -Xprint <file> does not print comments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • tools
    • b114
    • generic
    • generic
    • Verified

      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();
      }

            jjg Jonathan Gibbons
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: