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

javadoc tool: non .java filenames are taken by default as package names.

XMLWordPrintable

    • hopper
    • sparc
    • solaris_8
    • Verified

      The new javadoc correctly does not allow non ".java" files as they were in old Javadoc. Any file with non ".java" extension is rejected. But the error message needs more clarity. Please find the command and the message attached below.
      ==============================================================================
      blr-sunray:/home/vr128054/jdk-latest/jdk1.4.0/src/javax/swing 654 % java -Dfile.encoding=EUC-JP -Xbootclasspath/p:/home/vr128054/gj/gjclasses3 -classpath /home/vr128054/gj/gjclasses3 com.sun.tools.javadoc.Main JPanel.xxx
      Loading source files for package JPanel.xxx...
      javadoc: No source files for package JPanel/xxx
      1 error
      ================================================================================
      While it is perfectly valid to reject .xxx extension, by default, a "." shouldnt
      be considered a package name delimiter. A filename level error message could be more informative.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: