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

changeset 1476
0e17c3c23e3b
parent 1454
02a18f209ab3
child 1706
95d29b99e5b3
equal deleted inserted replaced
1475:1d8438db45f2 1476:0e17c3c23e3b
84 84
85 /** 85 /**
86 * Return true if this method is abstract 86 * Return true if this method is abstract
87 */ 87 */
88 public boolean isAbstract() { 88 public boolean isAbstract() {
89 //### This is dubious, but old 'javadoc' apparently does it. 89 return (Modifier.isAbstract(getModifiers()) && !isDefault());
90 //### I regard this as a bug and an obstacle to treating the
91 //### doclet API as a proper compile-time reflection facility.
92 //### (maddox 09/26/2000)
93 if (containingClass().isInterface()) {
94 //### Don't force creation of ClassDocImpl for super here.
95 // Abstract modifier is implicit. Strip/canonicalize it.
96 return false;
97 }
98 return Modifier.isAbstract(getModifiers());
99 } 90 }
100 91
101 /** 92 /**
102 * Get return type. 93 * Get return type.
103 * 94 *

mercurial