import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;

public class IntrospectorIgnoresDefIntfMethod {

    public static interface Named {
        public default String getName() {
            return "always the same";
        }
    }
    
    public static class NamedBean implements Named {
    }

    public static void main(final String[] args) throws IntrospectionException {
        for (final PropertyDescriptor desc :
            Introspector.getBeanInfo(NamedBean.class).getPropertyDescriptors()) {
            
            System.out.println(desc.getName());
        }
        // prints out "class" as the only property
        // should have included "name" too
    }
} 