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

javadoc should not produce exception stack trace

XMLWordPrintable

    • beta
    • generic
    • generic
    • Verified



      Name: dm26566 Date: 03/30/2001


      If you run the following command on linux, which is a subset of 'gnumake docs':
      ./../build/linux-i386/bin/javadoc -server -J-mx180m -splitIndex -use -doctitle
      'Java<sup><font size=-2>TM</font></sup> 2 Platform, Standard Edition, v
      1.4.0<br>API Specification' -windowtitle 'Java 2 Platform SE v1.4.0' -header
      '<b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed.
      v1.4.0</b>' -bottom '<font size="-1"><a
      href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or
      feature</a><br>For further API reference and developer documentation, see<a
      href="http://java.sun.com/j2se/1.4/devdocs-vs-specs.html">Java 2 SDK SE
      Developer Documentation</a>. That documentation contains more detailed,
      developer-targeted descriptions, with conceptual overviews, definitions of
      terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are
      trademarks or registered trademarks of Sun Microsystems, Inc. in the US and
      other countries.<br>Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio
      Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font>'
      -group "Java 2 Platform Packages"
      "java.*:javax.swing*:javax.accessibility:javax.imageio*:javax.naming*:javax.net*
      :javax.print*:javax.sound*:org.omg.*:javax.rmi*:javax.sql*:javax.transaction*:ja
      vax.xml*:org.w3c.dom*:org.xml.sax*:javax.security*:org.ietf*:javax.crypto*"
      -overview ./../src/share/classes/overview-core.html -d ./../build/linux-i386/doc/api -sourcepath
      "./../src/share/classes:./../build/linux-i386/gensrc:./../src/share/doc/stub" javax.swing javax.swing.border javax.swing.colorchooser
      javax.swing.filechooser javax.swing.event javax.swing.table javax.swing.text
      javax.swing.text.html javax.swing.text.html.parser javax.swing.text.rtf
      javax.swing.tree javax.swing.undo javax.swing.plaf javax.swing.plaf.basic
      javax.swing.plaf.metal javax.swing.plaf.multi javax.transaction
      javax.transaction.xa javax.xml.parsers javax.xml.transform
      javax.xml.transform.sax javax.xml.transform.dom javax.xml.transform.stream
      org.ietf.jgss


      you will get the stack trace shown below:

      Generating ./../build/linux-i386/doc/api/javax/swing/plaf/ColorChooserUI.html...
      Generating
      ./../build/linux-i386/doc/api/javax/swing/plaf/ColorUIResource.html...
      Generating ./../build/linux-i386/doc/api/javax/swing/plaf/ComboBoxUI.html...
      Generating
      ./../build/linux-i386/doc/api/javax/swing/plaf/ComponentInputMapUIResource.html.
      ..
      Generating ./../build/linux-i386/doc/api/javax/swing/plaf/ComponentUI.html...
      Generating ./../build/linux-i386/doc/api/javax/swing/plaf/DesktopIconUI.html...
      Generating ./../build/linux-i386/doc/api/javax/swing/plaf/DesktopPaneUI.html...
      Generating
      ./../build/linux-i386/doc/api/javax/swing/plaf/DimensionUIResource.html...
      Generating ./../build/linux-i386/doc/api/javax/swing/plaf/FileChooserUI.html...
      Generating ./../build/linux-i386/doc/api/javax/swing/plaf/FontUIResource.html...
      javadoc: In doclet class com.sun.tools.doclets.standard.Standard, method start
      has thrown an exception java.lang.reflect.InvocationTargetException
      com.sun.tools.javac.v8.code.Symbol$CompletionFailure: file java/awt/Font$.class
      not found
              at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1006)
              at
      com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:961)
              at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
              at com.sun.tools.javac.v8.code.Symbol$ClassSymbol.flags(Symbol.java:578)
              at com.sun.tools.javadoc.DocEnv.shouldDocument(DocEnv.java:159)
              at
      com.sun.tools.javadoc.ClassDocImpl.innerClasses(ClassDocImpl.java:431)
              at
      com.sun.tools.doclets.VisibleMemberMap$ClassMembers.getClassMembers(VisibleMembe
      rMap.java:263)
              at
      com.sun.tools.doclets.VisibleMemberMap$ClassMembers.addMembers(VisibleMemberMap.
      java:223)
              at
      com.sun.tools.doclets.VisibleMemberMap$ClassMembers.mapClass(VisibleMemberMap.ja
      va:191)
              at
      com.sun.tools.doclets.VisibleMemberMap$ClassMembers.mapClass(VisibleMemberMap.ja
      va:203)
              at
      com.sun.tools.doclets.VisibleMemberMap$ClassMembers.build(VisibleMemberMap.java:
      183)
              at
      com.sun.tools.doclets.VisibleMemberMap$ClassMembers.access$100(VisibleMemberMap.
      java:137)
              at
      com.sun.tools.doclets.VisibleMemberMap.<init>(VisibleMemberMap.java:68)
              at
      com.sun.tools.doclets.standard.AbstractSubWriter.buildVisibleMemberMap(AbstractS
      ubWriter.java:460)
              at
      com.sun.tools.doclets.standard.AbstractSubWriter.<init>(AbstractSubWriter.java:3
      8)
              at
      com.sun.tools.doclets.standard.ClassSubWriter.<init>(ClassSubWriter.java:24)
              at
      com.sun.tools.doclets.standard.ClassWriter.<init>(ClassWriter.java:69)
              at
      com.sun.tools.doclets.standard.ClassWriter.generate(ClassWriter.java:89)
              at
      com.sun.tools.doclets.standard.Standard.generateClassCycle(Standard.java:215)
              at
      com.sun.tools.doclets.standard.Standard.generateClassFiles(Standard.java:185)
              at
      com.sun.tools.doclets.standard.Standard.startGeneration(Standard.java:150)
              at com.sun.tools.doclets.standard.Standard.start(Standard.java:40)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
              at
      sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.jav
      a:47)
              at java.lang.reflect.Method.invoke(Method.java:306)
              at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:216)
              at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:95)
              at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:294)
              at com.sun.tools.javadoc.Start.begin(Start.java:102)
              at com.sun.tools.javadoc.Main.execute(Main.java:35)
              at com.sun.tools.javadoc.Main.main(Main.java:25)
      1 error
      52 warnings

      ======================================================================

            gafter Neal Gafter (Inactive)
            dmcduffisunw Dale Mcduffie (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: