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

Unreachable code in jdk.javadoc.internal.doclets.formats.html. HtmlDocletWriter. getAnnotations()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd_minor
    • Component/s: tools
    • Labels:

      Description

      Unreachable code in jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.getAnnotations(int indent, List<? extends AnnotationMirror> descList, boolean linkBreak, boolean isJava5DeclarationLocation):
      ..................
      if (annotationValue.getValue() instanceof AnnotationValue[]) {
                              AnnotationValue[] annotationArray =
                                      (AnnotationValue[]) annotationValue.getValue();
                              annotationTypeValues.addAll(Arrays.asList(annotationArray));
                          }
      ....................
      The initialization of checked value by AnnotationValue[] is not observed in the source code.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: