Buggy code:
public boolean isVersioned ( ) { } public boolean isVisible ( ) { } public final boolean isVisibleInHierarchy ( ) { } public final void modelChanged ( ) { } public final void modelChanging ( ) { } public final Page newPage ( final Class c ) { } public final Page newPage ( final Class c , final PageParameters parameters ) { } public final void redirectToInterceptPage ( final Page page ) { } public final void remove ( ) { } public final void render ( ) { } public final void render ( final MarkupStream markupStream ) { } public final void renderComponent ( ) { } public final void renderComponent ( final MarkupStream markupStream ) { } public final void rendered ( ) { } private void notifyBehaviorsComponentRendered ( ) { } private void notifyBehaviorsComponentBeforeRender ( ) { } public final void detachBehaviors ( ) { } public void renderHead ( final HtmlHeaderContainer container ) { } public void replaceWith ( Component replacement ) { } public final boolean sameRootModel ( final Component component ) { } public final boolean sameRootModel ( final IModel model ) { } public final Component setEnabled ( final boolean enabled ) { } public final Component setEscapeModelStrings ( final boolean escapeMarkup ) { } public final void setMetaData ( final MetaDataKey key , final Serializable object ) { } public Component setModel ( final IModel model ) { } public final Component setModelObject ( final Object object ) { } public final Component setOutputMarkupId ( final boolean output ) { } public final boolean getOutputMarkupId ( ) { } public final void setRedirect ( final boolean redirect ) { } public final Component setRenderBodyOnly ( final boolean renderTag ) { } public final void setResponsePage ( final Class cls ) { } public final void setResponsePage ( final Class cls , PageParameters parameters ) { } public final void setResponsePage ( final Page page ) { } public Component setVersioned ( boolean versioned ) { } public final Component setVisible ( final boolean visible ) { } public final Object visitParents ( final Class c , final Component . IVisitor visitor ) { } public String toString ( ) { } public String toString ( final boolean detailed ) { } public final CharSequence urlFor ( final Class pageClass , final PageParameters parameters ) { } public final CharSequence urlFor ( final IRequestTarget requestTarget ) { } public final CharSequence urlFor ( final IPageMap pageMap , final Class pageClass , final PageParameters parameters ) { } public final CharSequence urlFor ( final RequestListenerInterface listener ) { } public final CharSequence urlFor ( final IBehavior behaviour , final RequestListenerInterface listener ) { } public final CharSequence urlFor ( final ResourceReference resourceReference ) { } public final void warn ( final String message ) { } protected final void addStateChange ( final Change change ) { } protected final void checkComponentTag ( final ComponentTag tag , final String name ) { } protected final void checkComponentTagAttribute ( final ComponentTag tag , final String key , final String value ) { } protected void detachModel ( ) { } protected final String exceptionMessage ( final String message ) { } protected MarkupStream findMarkupStream ( ) { } protected final Page findPage ( ) { } protected final List getBehaviors ( Class type ) { } protected final boolean getFlag ( final int flag ) { } protected final boolean getFlag ( final short flag ) { } protected IModelComparator getModelComparator ( ) { } protected IModel initModel ( ) { } public void internalAttach ( ) { } public void internalDetach ( ) { } protected void internalOnAttach ( ) { } protected void internalOnDetach ( ) { } protected void internalOnModelChanged ( ) { } protected boolean isBehaviorAccepted ( final IBehavior behavior ) { if ( ( behavior instanceof AttributeModifier ) && ( ( getFlag ( Component . FLAG_IGNORE_ATTRIBUTE_MODIFIER ) ) != false ) ) { return false ; } <START_BUG> return behavior . isEnabled ( ) ; <END_BUG> } protected final boolean isIgnoreAttributeModifier ( ) { } protected boolean getStatelessHint ( ) { } public final boolean isStateless ( ) { } protected void onAfterRender ( ) { } protected void onAttach ( ) { } protected void onBeforeRender ( ) { } protected void onBeginRequest ( ) { } protected void onComponentTag ( final ComponentTag tag ) { } protected void onComponentTagBody ( final MarkupStream markupStream , final ComponentTag openTag ) { } protected void onDetach ( ) { } protected void onEndRequest ( ) { } protected void onModelChanged ( ) { } protected void onModelChanging ( ) { } protected final void onRender ( ) { } protected abstract void onRender ( final MarkupStream markupStream ) { } protected final void renderComponentTag ( ComponentTag tag ) { } protected final void replaceComponentTagBody ( final MarkupStream markupStream , final ComponentTag tag , final CharSequence body ) { } protected final void setFlag ( final int flag , final boolean set ) { } protected final void setFlag ( final short flag , final boolean set ) { } protected final Component setIgnoreAttributeModifier ( final boolean ignore ) { } protected void setMarkupStream ( final MarkupStream markupStream ) { } Component get ( final String path ) { } final boolean isAuto ( ) { } protected final boolean isRenderAllowed ( ) { } final void renderClosingComponentTag ( final MarkupStream markupStream , final ComponentTag openTag , final boolean renderTagOnly ) { } protected final void setAuto ( final boolean auto ) { } final void setId ( final String id ) { } final void setParent ( final MarkupContainer parent ) { } final void setRenderAllowed ( boolean renderAllowed ) { } private final IModel getRootModel ( final IModel model ) { } private static MetaDataKey MARKUP_ID_KEY = new MetaDataKey ( String . class ) { private static final long serialVersionUID = 1L ;

Fix:
return behavior . isEnabled ( this ) ;