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

log message for error case in Javadoc rewrite is misleading.

XMLWordPrintable

      when the new javadoc is run on non-existing java files (negative testcase), it outputs a log message that xxx.java is being loaded. This behaviour is not found in older Javadoc.

      Please find the output for non-existent file test.java using new JavaDoc
      -----------------------------------------------------------------------
      blr-sunray:/home/vr128054/jd-tests/newjavadoc/tests 64 % java -Dfile.encoding=EUC-JP -Xbootclasspath/p:/home/vr128054/gj/gjclasses3 -classpath /home/vr128054/gj/gjclasses3 com.sun.tools.javadoc.Main test.java
      Loading source file test.java...
      error: cannot read: test.java
      1 error

      Followed is the output of old Javadoc.
      --------------------------------------
      blr-sunray:/home/vr128054/jd-tests/newjavadoc/tests 65 % javadoc test.java
      javadoc: No package, class, or source file found named test.java.
      1 error

            gafter Neal Gafter (Inactive)
            rvijayansunw Ra Vijayan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: