Buggy code:
public abstract class AttributeValue extends BaseAttributeValue implements Persistent { private Transaction transaction ; private NumberKey oldOptionId ; private NumberKey oldUserId ; private String oldValue ; private int oldNumericValue ; private boolean oldOptionIdIsSet ; private boolean oldUserIdIsSet ; private boolean oldValueIsSet ; private boolean oldNumericValueIsSet ; private AttributeValue chainedValue ; private static String className = "AttributeValue" ; protected AttributeValue ( ) { } public AttributeValue getChainedValue ( ) { } public void setChainedValue ( AttributeValue v ) throws Exception { } public List getValueList ( ) { } public void setAttributeId ( NumberKey nk ) throws TorqueException { } public void setIssueId ( NumberKey nk ) throws TorqueException { } public void startTransaction ( Transaction transaction ) throws ScarabException { } private void endTransaction ( ) { } private void checkTransaction ( String errorMessage ) throws ScarabException { } public String getQueryKey ( ) { } public String toString ( ) { } public String getOptionIdAsString ( ) { } public void setOptionId ( NumberKey optionId ) throws TorqueException { } public void setNumericValue ( int v ) { } protected void setOptionIdOnly ( NumberKey optionId ) throws TorqueException { } public void setUserId ( NumberKey userId ) throws TorqueException { } protected void setUserIdOnly ( NumberKey value ) throws TorqueException { } public NumberKey [ ] getOptionIds ( ) throws Exception { } public void setOptionIds ( NumberKey [ ] ids ) throws Exception { } public NumberKey [ ] getUserIds ( ) throws Exception { } public void setUserIds ( NumberKey [ ] ids ) throws Exception { } public void setValue ( String value ) { } protected void setValueOnly ( String value ) { } public boolean isRequired ( ) throws Exception { } public boolean isSet ( ) { } public RModuleAttribute getRModuleAttribute ( ) throws Exception { } public AttributeOption getAttributeOption ( ) throws TorqueException { } public boolean isQuickSearchAttribute ( ) throws Exception { } static String getCacheKey ( ObjectKey key ) { } public static AttributeValue getNewInstance ( RModuleAttribute rma , Issue issue ) throws TorqueException { } public static AttributeValue getNewInstance ( ObjectKey attId , Issue issue ) throws TorqueException { } public static synchronized AttributeValue getNewInstance ( Attribute attribute , Issue issue ) throws TorqueException { } protected abstract Object loadResources ( ) throws Exception { } protected abstract void setResources ( Object resources ) { } public abstract void init ( ) throws Exception { } public boolean supportsVoting ( ) { } public AttributeValue copy ( ) throws TorqueException { } public void save ( DBConnection dbcon ) throws TorqueException { <START_BUG> if ( isModified ( ) ) { <END_BUG> try { checkTransaction ( "Cannot<seq2seq4repair_space>save<seq2seq4repair_space>a<seq2seq4repair_space>value<seq2seq4repair_space>outside<seq2seq4repair_space>a<seq2seq4repair_space>Transaction" ) ; } catch ( Exception e ) { throw new TorqueException ( e ) ; } Activity activity = new Activity ( ) ; String desc = getActivityDescription ( ) ; activity . create ( getIssue ( ) , getAttribute ( ) , desc , this . transaction , oldNumericValue , getNumericValue ( ) , oldUserId , getUserId ( ) , oldOptionId , getOptionId ( ) , oldValue , getValue ( ) , dbcon ) ; } super . save ( dbcon ) ; if ( ( chainedValue ) != null ) { chainedValue . save ( dbcon ) ; } endTransaction ( ) ; } private String getActivityDescription ( ) throws TorqueException { } }

Fix:
if ( ( isModified ( ) ) && ( ! ( getDeleted ( ) ) ) ) {