JDK-8013058 : Make BigDecimal a Primitive Data Type
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-04-19
  • Updated: 2013-04-24
  • Resolved: 2013-04-24
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
The main advantage of Cobol over Java in financial applications is that Cobol supports packed decimal as a native type. Java supports packed decimal with the BigDecimal class, but its usage is cumbersome, i.e. you need method calls to calculate with BigDecimal numbers.

Instead Java should support packed decimal as primitive data type, the mathematical operations should be usable for decimal in the same way as with float.
E.g.

decimal d = 2500 * 0.05d;

for a description of Cobol packed decimal see http://www.simotime.com/datapk01.htm

JUSTIFICATION :
In order to replace Cobol in financial applications with Java, the support for packed decimal should be in Java as good as in Cobol.
Comments
The essence of this request is operator overloading for BigDecimal; closing as a duplicate of JDK-4877954.
24-04-2013