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

Adding new java source files causes "make docs" failure on linux-amd64

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • tools
    • b49
    • generic
    • linux_redhat_2.1

      I'm adding a new feature involving adding new .java source files.
      "make docs" fails, only on linux-amd64 (quoddy), with


      Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javadoc/Messager$ExitJavadoc
      at com.sun.tools.javadoc.Start.begin(Start.java:128)
      at com.sun.tools.javadoc.Main.execute(Main.java:41)
      at com.sun.tools.javadoc.Main.main(Main.java:31)
      make: *** [coredocs] Error 1


      This appears to be some kind of system limit on the size of the input to
      the javadoc tool itself.
      - failure occurs only when running the javadoc in the build/VARIANT/bin directory
        not build/VARIANT/j2sdk-image/bin.
      - failure occurs even when running non-image javadoc from an unmodified build
        against the new workspace files.
      - failure can be resolved by explicitly removing all added source files and rerunning
        "make docs". Failure can subsequently be reintroduced by
        doing "touch ...src/share/classes/java/util/foo.java; make docs"

      A simple recipe for reproducing the problem is:
      $ make all # on linux-amd64
      $ (cd ../src/share/classes/java/util && touch foo.java bar.java)
        # One source file works; adding the second fails
      $ make docs

      Unfortunately, the obvious fix of increasing the heap size with -J-Xmx fails.

      This is a putback blocker for me.

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: