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

javadoc mishandles generation of @see tag with references to a statically imported nested type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 9
    • tools
    • None

      In the type javax.sound.sampled.spi.AudioFileWriter in the java.desktop module, there is an @see reference

          @see #isFileTypeSupported(Type, AudioInputStream)

      where "Type" is the statically imported nested type

          import static javax.sound.sampled.AudioFileFormat.Type;

      While there are many uses of "Type" in the file in question, when javadoc is run over AudioFileWriter, the following warning is produced:

      jdk/src/java.desktop/share/classes/javax/sound/sampled /spi/AudioFileWriter.java:127: warning - Tag @see: can't find isFileTypeSupported(Type, AudioInputStream) in javax.sound.sampled.spi.AudioFileWriter

      Changing the @see reference to

          @see #isFileTypeSupported(AudioFileFormat.Type, AudioInputStream)

      resolve the problem. Therefore, it seems that javadoc is not properly handling the statically imported in this situation since other occurrences of Type do *not* have to be (partially) qualified.

            ksrini Kumar Srinivasan
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: