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

"-group" option issue for classes from default package

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: tools
    • Labels:

      Description

      -group option issue for classes from default package: NPE is generated and then ignored, generated javadoc is incorrect (no .css, etc.)

      java.lang.NullPointerException
      at jdk.javadoc.internal.doclets.toolkit.util.Group.regExpGroupName(Group.java:217)
      at jdk.javadoc.internal.doclets.toolkit.util.Group.groupPackages(Group.java:196)
      at jdk.javadoc.internal.doclets.formats.html.PackageIndexWriter.<init>(PackageIndexWriter.java:91)
      at jdk.javadoc.internal.doclets.formats.html.PackageIndexWriter.generate(PackageIndexWriter.java:104)
      at jdk.javadoc.internal.doclets.formats.html.HtmlDoclet.generateOtherFiles(HtmlDoclet.java:149)
      at jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:167)
      at jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.startDoclet(AbstractDoclet.java:104)
      at jdk.javadoc.internal.doclets.formats.html.HtmlDoclet.run(HtmlDoclet.java:83)
      at jdk.javadoc.internal.doclets.standard.Standard.run(Standard.java:63)
      at jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:393)
      at jdk.javadoc.internal.tool.Start.begin(Start.java:272)
      at jdk.javadoc.internal.tool.Start.begin(Start.java:219)
      at jdk.javadoc.internal.tool.Main.execute(Main.java:85)
      at JavadocTester.javadoc(JavadocTester.java:303)
      at TestGroupOption.test2(TestGroupOption.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)

      Use attached test to reproduce.

        Attachments

          Activity

            People

            Assignee:
            ksrini Kumar Srinivasan
            Reporter:
            ogb Oleg Barbashov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: