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

REGRESSION: Automatic copying of Method comments is broken in 1.5.0 Beta 2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • tools



      Name: gm110360 Date: 07/28/2004


      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      The feature "automatic copying of method comments" is broken with 1.5.0 Beta 2. I wrote a minimal testfile with overrides "equals" of java.lang.Object and put the directory with the source of the JDK in the path of -sourcepath. This works with 1.4.2, but with 1.5.2 the feature is broken. Here the output of javadoc:
      <pre>
      [search path for source files: [., \\pgtd2131\gast\Beanta\jdk1.5.0\src]]
      [search path for class files: [C:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar, C:\Program Files\Java\jdk1.5.0\jre\lib\jsse.jar, C:\Program Files\Java\jdk1.5.0\jre\lib\jce.jar, C:\Program Files\Java\jdk1.5.0\jre\lib\charsets.jar, C:\Program Files\Java\jdk1.5.0\jre\lib\ext\dnsns.jar, C:\Program Files\Java\jdk1.5.0\jre\lib\ext\localedata.jar, C:\Program Files\Java\jdk1.5.0\jre\lib\ext\sunjce_provider.jar, C:\Program Files\Java\jdk1.5.0\jre\lib\ext\sunpkcs11.jar, .]]
      Loading source files for package pkg...
      [parsing started D:\Profiles\MCHKNUBE\Desktop\j\.\pkg\main.java]
      [parsing completed 31ms]
      Constructing Javadoc information...
      [loading C:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar(java/lang/Object.class)]
      [loading C:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar(java/lang/String.class)]
      Standard Doclet version 1.5.0-beta3
      Building tree for all the packages and classes...
      Generating javadoc\pkg/\main.html...
      [loading C:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar(java/io/Serializable.class)]
      Generating javadoc\pkg/\package-frame.html...
      Generating javadoc\pkg/\package-summary.html...
      Generating javadoc\pkg/\package-tree.html...
      Generating javadoc\constant-values.html...
      Building index for all the packages and classes...
      Generating javadoc\overview-tree.html...
      Generating javadoc\index-all.html...
      Generating javadoc\deprecated-list.html...
      Building index for all classes...
      Generating javadoc\allclasses-frame.html...
      Generating javadoc\allclasses-noframe.html...
      Generating javadoc\index.html...
      Generating javadoc\help-doc.html...
      Generating javadoc\stylesheet.css...
      [done in 1625 ms]
      </pre>


      REPRODUCIBILITY :
      This bug can be reproduced always.

      Release Regression From : 1.4.2
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Incident Review ID: 290114)
      ======================================================================
      Hi,

      attached in bug-5079630.zip is my test environment; two command files for
      creating the javadoc with 1.4.2 & 1.5.0;

      the resulting html files are in javadoc140 & javadoc150;

      the difference is obvious in the one method "equals" in the class "Main".

      in the -verbose output the difference is obvious too

      Klaus

      ------------------------- Main.java --------------------------
      package pkg;

      class Main {

        boolean equals (Object o){
        }

      }
      ------------------------------------------------------------

            dkramersunw Douglas Kramer (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: