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

javadoc lets off an 'abstract native' method just with a warning.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • tools

      Consider the following program,
      -------------------------------
      jtools-sqe:/home/vr128054/vertest/work 278 % more test.java
      public class test
      {
              public final abstract void methodOne ()
              {
              }
      }


      this is a negative test case written to check conformance to JLS as a final method cannot be 'abstract'.

      Find Javadoc's behaviour below..
      --------------------------------

      jtools-sqe:/home/vr128054/vertest/work 279 % javadoc test.java
      Loading source file test.java...
      Constructing Javadoc information...
      test.java:3: illegal combination of modifiers: abstract and final
              public final abstract void methodOne ()
                                         ^
      Standard Doclet version 1.4 beta (04 Aug 2001)

      Building tree for all the packages and classes...
      Building index for all the packages and classes...
      Generating overview-tree.html...
      Generating index-all.html...
      Generating deprecated-list.html...
      Building index for all classes...
      Generating allclasses-frame.html...
      Generating allclasses-noframe.html...
      Generating index.html...
      Generating packages.html...
      Generating test.html...
      Generating package-list...
      Generating help-doc.html...
      Generating stylesheet.css...
      1 warning

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: