jdk/src/share/classes/com/sun/tools/jdi/MethodImpl.java
changeset 24125 b85eeaae56c7
parent 14342 8435a30053c1
child 24127 5d05d4c0de7f
--- a/jdk/src/share/classes/com/sun/tools/jdi/MethodImpl.java	Mon Apr 28 13:49:49 2014 +0100
+++ b/jdk/src/share/classes/com/sun/tools/jdi/MethodImpl.java	Tue Apr 29 11:15:21 2014 +0200
@@ -187,6 +187,13 @@
         return isModifierSet(VMModifiers.ABSTRACT);
     }
 
+    public boolean isDefault() {
+        return !isModifierSet(VMModifiers.ABSTRACT) &&
+               !isModifierSet(VMModifiers.STATIC) &&
+               !isModifierSet(VMModifiers.PRIVATE) &&
+               declaringType() instanceof InterfaceType;
+    }
+
     public boolean isSynchronized() {
         return isModifierSet(VMModifiers.SYNCHRONIZED);
     }