Buggy code:
public void setRequiresExtent ( boolean req ) { } public boolean isEmbeddedOnly ( ) { } public void setEmbeddedOnly ( boolean embed ) { } public boolean isIntercepting ( ) { } public void setIntercepting ( boolean intercepting ) { } public boolean isManagedInterface ( ) { } public void setManagedInterface ( boolean managedInterface ) { } public Class getInterfaceImpl ( ) { } public void setInterfaceImpl ( Class impl ) { } public Class [ ] getDeclaredInterfaces ( ) { } public void addDeclaredInterface ( Class iface ) { } public boolean removeDeclaredInterface ( Class iface ) { } public void setInterfacePropertyAlias ( Class iface , String orig , String local ) { } public String getInterfacePropertyAlias ( Class iface , String orig ) { } public String [ ] getInterfaceAliasedProperties ( Class iface ) { } public int getExtraFieldDataLength ( ) { } public int getExtraFieldDataIndex ( int field ) { } private int [ ] getExtraFieldDataTable ( ) { } public boolean isAccessibleField ( String field ) { } public FieldMetaData [ ] getFields ( ) { } private void replaceDefinedSuperclassFields ( FieldMetaData [ ] fields , int len ) { } protected FieldMetaData getSuperclassField ( FieldMetaData supField ) { } public FieldMetaData [ ] getDeclaredFields ( ) { } public FieldMetaData [ ] getPrimaryKeyFields ( ) { } public FieldMetaData [ ] getDefaultFetchGroupFields ( ) { } public FieldMetaData getVersionField ( ) { } public FieldMetaData getField ( int index ) { } public FieldMetaData getDeclaredField ( int index ) { } public FieldMetaData getField ( String name ) { } public FieldMetaData getDeclaredField ( String name ) { } public FieldMetaData [ ] getDeclaredUnmanagedFields ( ) { } public FieldMetaData addDeclaredField ( String name , Class type ) { } public boolean removeDeclaredField ( FieldMetaData field ) { } public FieldMetaData getDefinedSuperclassField ( String name ) { } public FieldMetaData addDefinedSuperclassField ( String name , Class type , Class sup ) { } public boolean removeDefinedSuperclassField ( FieldMetaData field ) { } public void defineSuperclassFields ( boolean force ) { } private void resolveDefinedSuperclassFields ( ) { } public FieldMetaData [ ] getDefinedFields ( ) { } public FieldMetaData [ ] getFieldsInListingOrder ( ) { } public FieldMetaData [ ] getDefinedFieldsInListingOrder ( ) { } public String getDataCacheName ( ) { } public void setDataCacheName ( String name ) { } public int getDataCacheTimeout ( ) { } public void setDataCacheTimeout ( int timeout ) { } public DataCache getDataCache ( ) { } public boolean isDetachable ( ) { } public void setDetachable ( boolean detachable ) { } public String getDetachedState ( ) { } public void setDetachedState ( String field ) { } public Field getDetachedStateField ( ) { } public Boolean usesDetachedState ( ) { } private Boolean usesDetachedState ( String detachedField , boolean confDisallows ) { } protected void clearAllFieldCache ( ) { } protected void clearDefinedFieldCache ( ) { } protected void clearFieldCache ( ) { } protected void clearSubclassCache ( ) { } void clearExtraFieldDataTable ( ) { } private void cacheFields ( ) { } public int hashCode ( ) { } public boolean equals ( Object other ) { } public int compareTo ( Object other ) { } public String toString ( ) { } public int getResolve ( ) { } public void setResolve ( int mode ) { } public void setResolve ( int mode , boolean on ) { } public boolean resolve ( int mode ) { } protected void resolveMeta ( boolean runtime ) { } protected void validateMeta ( boolean runtime ) { } protected void resolveMapping ( boolean runtime ) { } protected void validateMapping ( boolean runtime ) { } protected void initializeMapping ( ) { } private void validateDataCache ( ) { } private void validateIdentity ( ) { } private void validateAppIdClass ( ) { } private boolean hasConcretePCSuperclass ( ) { } private void validateAppIdClassMethods ( Class oid ) { } private void validateAppIdClassPKs ( ClassMetaData meta , FieldMetaData [ ] fmds , Class oid ) { } private void validateNoPKFields ( ) { } private void validateAccessType ( ) { } private void validateDetachable ( ) { } public FetchGroup [ ] getDeclaredFetchGroups ( ) { } public FetchGroup [ ] getCustomFetchGroups ( ) { } public FetchGroup getFetchGroup ( String name ) { } public FetchGroup addDeclaredFetchGroup ( String name ) { } public boolean removeDeclaredFetchGroup ( FetchGroup fg ) { } public File getSourceFile ( ) { } public Object getSourceScope ( ) { } public int getSourceType ( ) { } public void setSource ( File file , int srcType ) { } public String getResourceName ( ) { } public int getSourceMode ( ) { } public void setSourceMode ( int mode ) { } public void setSourceMode ( int mode , boolean on ) { } public int getListingIndex ( ) { } public void setListingIndex ( int index ) { } public String [ ] getComments ( ) { } public void setComments ( String [ ] comments ) { } public void copy ( ClassMetaData meta ) { } private static void copy ( ClassMetaData embed , ClassMetaData dec ) { } protected void addExtensionKeys ( Collection exts ) { } private static class ListingOrderComparator implements Comparator { private static final ClassMetaData . ListingOrderComparator _instance = new ClassMetaData . ListingOrderComparator ( ) ; public static ClassMetaData . ListingOrderComparator getInstance ( ) { } public int compare ( Object o1 , Object o2 ) { } } public void registerForValueUpdate ( String ... values ) { if ( values == null ) return ; for ( String key : values ) { Value value = getRepository ( ) . getConfiguration ( ) . getValue ( key ) ; if ( value != null ) <START_BUG> value . setListener ( this ) ; <END_BUG> } } public void valueChanged ( Value val ) { } }

Fix:
value . addListener ( this ) ;