src/share/classes/com/sun/tools/javadoc/MethodDocImpl.java

changeset 1476
0e17c3c23e3b
parent 1454
02a18f209ab3
child 1706
95d29b99e5b3
     1.1 --- a/src/share/classes/com/sun/tools/javadoc/MethodDocImpl.java	Tue Jan 01 17:50:29 2013 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/javadoc/MethodDocImpl.java	Fri Jan 04 23:06:05 2013 -0800
     1.3 @@ -86,16 +86,7 @@
     1.4       * Return true if this method is abstract
     1.5       */
     1.6      public boolean isAbstract() {
     1.7 -        //### This is dubious, but old 'javadoc' apparently does it.
     1.8 -        //### I regard this as a bug and an obstacle to treating the
     1.9 -        //### doclet API as a proper compile-time reflection facility.
    1.10 -        //### (maddox 09/26/2000)
    1.11 -        if (containingClass().isInterface()) {
    1.12 -            //### Don't force creation of ClassDocImpl for super here.
    1.13 -            // Abstract modifier is implicit.  Strip/canonicalize it.
    1.14 -            return false;
    1.15 -        }
    1.16 -        return Modifier.isAbstract(getModifiers());
    1.17 +        return (Modifier.isAbstract(getModifiers()) && !isDefault());
    1.18      }
    1.19  
    1.20      /**

mercurial