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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0041805
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Localization Pack: Spain] AEAT 340minorhave not tried2019-09-12 16:302019-09-13 12:28
Reportercollazoandy4View Statuspublic 
Assigned Tocollazoandy4 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision55ddcd858cf0
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned ToSandrahuguet
Regression introduced in release
Summary

0041805: Several warnings are shown in the console while compiling with JDK 11

Description[javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java:112: warning: [deprecation] ROUND_HALF_UP in BigDecimal has been deprecated
    [javac] .divide(new BigDecimal("100"), 2, BigDecimal.ROUND_HALF_UP),
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java:112: warning: [deprecation] divide(BigDecimal,int,int) in BigDecimal has been deprecated
    [javac] .divide(new BigDecimal("100"), 2, BigDecimal.ROUND_HALF_UP),
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java:261: warning: [deprecation] ROUND_HALF_EVEN in BigDecimal has been deprecated
    [javac] BigDecimal.ROUND_HALF_EVEN);
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java:260: warning: [deprecation] setScale(int,int) in BigDecimal has been deprecated
    [javac] BigDecimal taxableAmountN = taxableAmount.setScale(EURO.getStandardPrecision().intValue(),
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java:270: warning: [deprecation] ROUND_HALF_EVEN in BigDecimal has been deprecated
    [javac] BigDecimal.ROUND_HALF_EVEN);
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java:269: warning: [deprecation] setScale(int,int) in BigDecimal has been deprecated
    [javac] BigDecimal vatAmountN = vatAmount.setScale(EURO.getStandardPrecision().intValue(),
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java:282: warning: [deprecation] ROUND_HALF_EVEN in BigDecimal has been deprecated
    [javac] BigDecimal.ROUND_HALF_EVEN)));
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java:281: warning: [deprecation] setScale(int,int) in BigDecimal has been deprecated
    [javac] : ecTaxAmount.setScale(EURO.getStandardPrecision().intValue(),
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/bean/PaymentInfoFor340.java:48: warning: [deprecation] Integer(int) in Integer has been deprecated
    [javac] setYear((new Integer(cal.get(Calendar.YEAR)).toString()));
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012NotAPRMDao.java:284: warning: [deprecation] ROUND_UP in BigDecimal has been deprecated
    [javac] multiply.multiply(dp.getAmount()).divide(totalGenerated, 10, BigDecimal.ROUND_UP));
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012NotAPRMDao.java:284: warning: [deprecation] divide(BigDecimal,int,int) in BigDecimal has been deprecated
    [javac] multiply.multiply(dp.getAmount()).divide(totalGenerated, 10, BigDecimal.ROUND_UP));
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/comparator/OrderByYearAndBP.java:18: warning: [deprecation] Integer(String) in Integer has been deprecated
    [javac] final Integer year1 = new Integer(o1.getYear());
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/comparator/OrderByYearAndBP.java:19: warning: [deprecation] Integer(String) in Integer has been deprecated
    [javac] final Integer year2 = new Integer(o2.getYear());
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/util/AEAT340_Utility.java:81: warning: [deprecation] ROUND_HALF_UP in BigDecimal has been deprecated
    [javac] final BigDecimal origAmt = amount.setScale(2, BigDecimal.ROUND_HALF_UP);
    [javac] ^
    [javac] /ob_spanish_pack/modules/org.openbravo.module.aeat340.es/src/org/openbravo/module/aeat340/es/util/AEAT340_Utility.java:81: warning: [deprecation] setScale(int,int) in BigDecimal has been deprecated
    [javac] final BigDecimal origAmt = amount.setScale(2, BigDecimal.ROUND_HALF_UP);
    [javac] ^
    [javac] 15 warnings
Steps To Reproduce-
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0038130 closedcaristu Openbravo ERP support JDK 11 

-  Notes
(0114564)
hgbot (developer)
2019-09-13 12:13

Repository: erp/pmods/org.openbravo.module.aeat340.es
Changeset: b7589fd2fef79d35d0eec5f614180ff6a29792b4
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Thu Sep 12 10:28:59 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat340.es/rev/b7589fd2fef79d35d0eec5f614180ff6a29792b4 [^]

Related to issue 41805: Set new eclipse build-int format

---
M src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java
M src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012NotAPRMDao.java
M src/org/openbravo/module/aeat340/es/bean/PaymentInfoFor340.java
M src/org/openbravo/module/aeat340/es/util/AEAT340_Utility.java
---
(0114565)
hgbot (developer)
2019-09-13 12:13

Repository: erp/pmods/org.openbravo.module.aeat340.es
Changeset: 901ebbc309d11516f35e6d48a267f5b8e244f587
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Thu Sep 12 10:34:18 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat340.es/rev/901ebbc309d11516f35e6d48a267f5b8e244f587 [^]

Fixes issue 41805:Several warnings are shown in the console while compiling with
JDK 11

Removed depreceated BigDecimal rounding constants
Replaced new Integer(1).toString with String.valueOf

---
M src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java
M src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012NotAPRMDao.java
M src/org/openbravo/module/aeat340/es/bean/PaymentInfoFor340.java
M src/org/openbravo/module/aeat340/es/comparator/OrderByYearAndBP.java
M src/org/openbravo/module/aeat340/es/util/AEAT340_Utility.java
---
(0114566)
hgbot (developer)
2019-09-13 12:13

Repository: erp/pmods/org.openbravo.module.aeat340.es
Changeset: 54c711a3fd6b64e8b529fd0f32d1a601c22026be
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Fri Sep 13 12:12:50 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat340.es/rev/54c711a3fd6b64e8b529fd0f32d1a601c22026be [^]

related to issue 41805 fix javadoc warnings

---
M src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012NotAPRMDao.java
M src/org/openbravo/module/aeat340/es/util/AEAT340_Utility.java
---
(0114567)
hgbot (developer)
2019-09-13 12:26

Repository: erp/pmods/org.openbravo.module.aeat340.es
Changeset: 6dbadda3fb80b4544f4a5e2ecb720572511c2220
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Thu Sep 12 10:45:35 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat340.es/rev/6dbadda3fb80b4544f4a5e2ecb720572511c2220 [^]

Related to issue 41805:Set new eclipse build-int format

---
M src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java
M src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012NotAPRMDao.java
M src/org/openbravo/module/aeat340/es/bean/PaymentInfoFor340.java
M src/org/openbravo/module/aeat340/es/util/AEAT340_Utility.java
---
(0114568)
hgbot (developer)
2019-09-13 12:26

Repository: erp/pmods/org.openbravo.module.aeat340.es
Changeset: 55ddcd858cf0c78333a2df058fe1566eaec9d5c3
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Thu Sep 12 10:57:42 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat340.es/rev/55ddcd858cf0c78333a2df058fe1566eaec9d5c3 [^]

Fixes issue 41805:Several warnings are shown in the console while compiling with
JDK 11

Removed depreceated BigDecimal rounding constants
Replaced new Long(1) with 1L

---
M src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012.java
M src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012NotAPRMDao.java
M src/org/openbravo/module/aeat340/es/bean/PaymentInfoFor340.java
M src/org/openbravo/module/aeat340/es/comparator/OrderByYearAndBP.java
M src/org/openbravo/module/aeat340/es/util/AEAT340_Utility.java
---
(0114569)
hgbot (developer)
2019-09-13 12:27

Repository: erp/pmods/org.openbravo.module.aeat340.es
Changeset: 0076f9baf71f07e2be27c8f531e9286bbe5ff23a
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Fri Sep 13 12:26:14 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat340.es/rev/0076f9baf71f07e2be27c8f531e9286bbe5ff23a [^]

related to issue 41805 fix javadoc warnings cashvat

---
M src/org/openbravo/module/aeat340/es/api/year2012/AEAT340Report_2012NotAPRMDao.java
M src/org/openbravo/module/aeat340/es/util/AEAT340_Utility.java
---
(0114573)
Sandrahuguet (developer)
2019-09-13 12:28

code review + testing ok

- Issue History
Date Modified Username Field Change
2019-09-12 16:30 collazoandy4 New Issue
2019-09-12 16:30 collazoandy4 Assigned To => collazoandy4
2019-09-12 16:31 collazoandy4 Status new => scheduled
2019-09-13 12:13 hgbot Checkin
2019-09-13 12:13 hgbot Note Added: 0114564
2019-09-13 12:13 hgbot Checkin
2019-09-13 12:13 hgbot Note Added: 0114565
2019-09-13 12:13 hgbot Status scheduled => resolved
2019-09-13 12:13 hgbot Resolution open => fixed
2019-09-13 12:13 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat340.es/rev/901ebbc309d11516f35e6d48a267f5b8e244f587 [^]
2019-09-13 12:13 hgbot Checkin
2019-09-13 12:13 hgbot Note Added: 0114566
2019-09-13 12:26 hgbot Checkin
2019-09-13 12:26 hgbot Note Added: 0114567
2019-09-13 12:26 hgbot Checkin
2019-09-13 12:26 hgbot Note Added: 0114568
2019-09-13 12:26 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat340.es/rev/901ebbc309d11516f35e6d48a267f5b8e244f587 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat340.es/rev/55ddcd858cf0c78333a2df058fe1566eaec9d5c3 [^]
2019-09-13 12:27 hgbot Checkin
2019-09-13 12:27 hgbot Note Added: 0114569
2019-09-13 12:28 Sandrahuguet Review Assigned To => Sandrahuguet
2019-09-13 12:28 Sandrahuguet Note Added: 0114573
2019-09-13 12:28 Sandrahuguet Status resolved => closed
2019-09-13 12:38 Sandrahuguet Relationship added related to 0038130


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker