This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 164546

Summary: class diagram code gen blows away the code
Product: uml Reporter: shche123 <shche123>
Component: Code GenerationAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description shche123 2009-05-06 02:08:13 UTC
change the parameter name from val to interestRate

old code:


    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.C5705525-24C9-1AC6-83F7-0CF565EC43F8]
    // </editor-fold> 
    public double getInterestRate() {
        return interestRate;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.0A0F2EC1-9D64-4C8C-067E-BBFBAF4C7EBF]
    // </editor-fold> 
    public void setInterestRate(double val) {
        this.interestRate = val;
    }
}

new code:

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.C5705525-24C9-1AC6-83F7-0CF565EC43F8]
    // </editor-fold> 
    public double getInterestRate () {
        return 0.0;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.0A0F2EC1-9D64-4C8C-067E-BBFBAF4C7EBF]
    // </editor-fold> 
    public void setInterestRate (double interestRate) {
    }
}