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

javadoc is trying to load files that it is not asked to.

XMLWordPrintable

    • beta2
    • sparc
    • solaris_9
    • Verified

      Follow the commands and their dump.
      ===================================
      1) I am testing with Merlin-build72.

      jtools-sqe:/home/vr128054/test 84 % which java
      /net/sqindia/export/disk03/tools/j2sdk/jdklatest/solsparc/bin/java
      jtools-sqe:/home/vr128054/test 85 % java -version
      java version "1.4.0-beta_refresh"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b72)
      Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b72, mixed mode)

      Further confirmation for build-72.
      ==================================
      jtools-sqe:/home/vr128054/test 86 % javadoc -J-version
      java version "1.4.0-beta_refresh"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b72)
      Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b72, mixed mode)

      Listing out all .java files in the directory.
      ---------------------------------------------
      jtools-sqe:/home/vr128054/test 87 % ls *.java
      TagTest.java* c.java javaptest.java test.java
      a.java dummy.java t.java
      b.java holi.java t1.java

      typing the file I want to run javadoc on
      =========================================

      jtools-sqe:/home/vr128054/test 88 % more dummy.java
      public class dummy
      {
      }

      That's a simple java program I run to test sanity.
      Now, the Javadoc tool attempts to load all other .java files and ends up reporting errors in them.

      jtools-sqe:/home/vr128054/test 89 % javadoc dummy.java
      Loading source file dummy.java...
      Constructing Javadoc information...

      Standard Doclet version 1.4 beta (12 July 01)

      Building tree for all the packages and classes...
      Building index for all the packages and classes...
      Generating overview-tree.html...
      Generating index-all.html...
      Generating deprecated-list.html...
      Building index for all classes...
      Generating allclasses-frame.html...
      Generating allclasses-noframe.html...
      Generating index.html...
      Generating packages.html...
      Generating package-summary.html...
      ./c.java:1: cannot resolve symbol
      symbol : class B
      location: class C
      class C extends B
                      ^
      ./TagTest.java:13: warning - param xyz tag not on method.
      Generating package-tree.html...
      Generating package-frame.html...
      Generating dummy.html...
      Generating dummy.html...
      Generating package-list...
      Generating help-doc.html...
      Generating stylesheet.css...
      1 error
      1 warning

            jhosunw Jamie Ho (Inactive)
            rvijayansunw Ra Vijayan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: