Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0006282
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2008-11-30 23:022009-03-06 12:34
ReportermtaalView Statuspublic 
Assigned ToAinhoaPagola 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision11071
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0006282: Openbravo source code contains examples of incorrect use of the BigDecimal setScale method

DescriptionThe BigDecimal setScale method does not change the BigDecimal but returns a new instance. There are several places in the Openbravo code where the return value is not used:
LineNetAmt.setScale(stdPrecision, BigDecimal.ROUND_HALF_UP);

The correct above code is:
LineNetAmt = LineNetAmt.setScale(stdPrecision, BigDecimal.ROUND_HALF_UP);

The occurrences of this error can be found by searching for:
setScale(
in the Openbravo source code tree
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0011099)
svnbot (reporter)
2008-12-09 20:02

Repository: openbravo
Revision: 11071
Author: AinhoaPagola
Date: 2008-12-09 20:02:17 +0100 (Tue, 09 Dec 2008)

Fixes bug 0006282. Incorrect use of BigDecimal setScale method fixed.

---
U trunk/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java
U trunk/src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder.java
U trunk/src/org/openbravo/erpCommon/ad_process/CreateCashFlowStatement.java
U trunk/src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=11071&sc=1 [^]

- Issue History
Date Modified Username Field Change
2008-11-30 23:02 mtaal New Issue
2008-11-30 23:02 mtaal Assigned To => rafaroda
2008-11-30 23:02 mtaal sf_bug_id 0 => 2367121
2008-11-30 23:02 mtaal Regression testing => No
2008-12-03 19:03 pjuvara Priority normal => high
2008-12-09 13:00 pheenan Assigned To rafaroda => AinhoaPagola
2008-12-09 20:02 svnbot Checkin
2008-12-09 20:02 svnbot Note Added: 0011099
2008-12-09 20:02 svnbot Status new => resolved
2008-12-09 20:02 svnbot Resolution open => fixed
2008-12-09 20:02 svnbot svn_revision => 11071
2009-03-06 12:34 psarobe Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker