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

javadoc allows a class to be non-abstract while it has an abstract method

XMLWordPrintable

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

      Consider the testcase.
      ----------------------

      jtools-sqe:/home/vr128054/vertest/work 327 % more test.java
      public class test
      {
              public abstract void doNothing ();
      }

      Find the JavaC behavior below (correct)
      ---------------------------------------
      jtools-sqe:/home/vr128054/vertest/work 328 % javac test.java
      test.java:1: test should be declared abstract; it does not define doNothing() in test
      public class test
             ^
      1 error

      Find the Javadoc behaviour attached below (incorrect)
      -----------------------------------------------------

      jtools-sqe:/home/vr128054/vertest/work 329 % javadoc test.java
      Loading source file test.java...
      Constructing Javadoc information...
      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...

            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: