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

-sourcepath option fails with the new javadoc rewrite.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      sparc
    • OS:
      solaris_8
    • Verification:
      Verified

      Description

      *** -overview option works fine if tested alone.

      The problem arises from -sourcepath option.


      When tested with -overview option, the new javadoc rewrite crashes with an exception.

      Please find the command used to produce this effect below
      ---------------------------------------------------------
      java -Dfile.encoding=EUC-JP -Xbootclasspath/p:/home/vr128054/gj/gjclasses3 -classpath /home/vr128054/gj/gjclasses3 com.sun.tools.javadoc.Main -d tmp -overview ../func/overview.html -sourcepath ../classes java.lang

      Please find the output of Javadoc and the exception below
      ---------------------------------------------------------
      Loading source files for package java.lang...
      Constructing Javadoc information...
      Building tree for all the packages and classes...
      Building index for all the packages and classes...
      Generating tmp/overview-tree.html...
      Generating tmp/index-all.html...
      javadoc: In doclet class com.sun.tools.doclets.standard.Standard, method start has thrown an exception java.lang.reflect.InvocationTargetException
      java.lang.Error
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Error.<init>(Compiled Code)
              at com.sun.tools.javadoc.DocEnv.makeClassDoc(Compiled Code)
              at com.sun.tools.javadoc.JavadocTool$1._case(Compiled Code)
              at com.sun.tools.javac.v8.tree.Tree$ClassDef.visit(Compiled Code)
              at com.sun.tools.javac.v8.comp.Enter.classEnter(Compiled Code)
              at com.sun.tools.javac.v8.comp.Enter.classEnter(Compiled Code)
              at com.sun.tools.javac.v8.comp.Enter._case(Compiled Code)
              at com.sun.tools.javac.v8.tree.Tree$TopLevel.visit(Compiled Code)
              at com.sun.tools.javac.v8.comp.Enter.classEnter(Compiled Code)
              at com.sun.tools.javac.v8.comp.Enter.classEnter(Compiled Code)
              at com.sun.tools.javac.v8.comp.Enter.main(Compiled Code)
              at com.sun.tools.javac.v8.JavaCompiler.complete(Compiled Code)
              at com.sun.tools.javac.v8.code.ClassReader.fillIn(Compiled Code)
              at com.sun.tools.javac.v8.code.ClassReader.complete(Compiled Code)
              at com.sun.tools.javac.v8.code.Symbol.complete(Compiled Code)
              at com.sun.tools.javac.v8.code.Symbol$ClassSymbol.members(Compiled Code)
              at com.sun.tools.javadoc.ClassDocImpl.searchMethod(Compiled Code)
              at com.sun.tools.javadoc.ClassDocImpl.findMethod(Compiled Code)
              at com.sun.tools.javadoc.SeeTagImpl.findExecutableMember(Compiled Code)
              at com.sun.tools.javadoc.SeeTagImpl.findReferenced(Compiled Code)
              at com.sun.tools.javadoc.SeeTagImpl.<init>(Compiled Code)
              at com.sun.tools.javadoc.Comment$1$CommentStringParser.parseCommentComponent(Compiled Code)
              at com.sun.tools.javadoc.Comment$1$CommentStringParser.parseCommentStateMachine(Compiled Code)
              at com.sun.tools.javadoc.Comment.<init>(Compiled Code)
              at com.sun.tools.javadoc.DocImpl.comment(Compiled Code)
              at com.sun.tools.javadoc.DocImpl.tags(Compiled Code)
              at com.sun.tools.doclets.standard.AbstractIndexWriter.printComment(Compiled Code)
              at com.sun.tools.doclets.standard.AbstractIndexWriter.printDescription(Compiled Code)
              at com.sun.tools.doclets.standard.AbstractIndexWriter.generateContents(Compiled Code)
              at com.sun.tools.doclets.standard.SingleIndexWriter.generateIndexFile(Compiled Code)
              at com.sun.tools.doclets.standard.SingleIndexWriter.generate(SingleIndexWriter.java:55)
              at com.sun.tools.doclets.standard.Standard.startGeneration(Compiled Code)
              at com.sun.tools.doclets.standard.Standard.start(Standard.java:40)
              at java.lang.reflect.Method.invoke(Native Method)
              at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:196)
              at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:94)
              at com.sun.tools.javadoc.Start.parseAndExecute(Compiled Code)
              at com.sun.tools.javadoc.Start.begin(Start.java:116)
              at com.sun.tools.javadoc.Main.execute(Main.java:44)
              at com.sun.tools.javadoc.Main.main(Main.java:34)
      1 error


      Attached below is the concerned overviw.html
      --------------------------------------------
      <HTML>
      <body>
      My overview file for testing purpose.
      </body>
      </HTML>

        Attachments

          Activity

            People

            • Assignee:
              gafter Neal Gafter
              Reporter:
              rvijayansunw Ra Vijayan (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: