Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||||
View Issue Details | |||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||
0037966 | Retail Modules | Web POS | public | 2018-02-19 11:38 | 2018-02-26 18:04 | ||||||||||||||||
Reporter | shuehner | ||||||||||||||||||||
Assigned To | shuehner | ||||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||||
Product Version | |||||||||||||||||||||
Target Version | Fixed in Version | RR18Q2 | |||||||||||||||||||
Merge Request Status | |||||||||||||||||||||
Review Assigned To | marvintm | ||||||||||||||||||||
OBNetwork customer | |||||||||||||||||||||
Support ticket | |||||||||||||||||||||
Regression level | |||||||||||||||||||||
Regression date | |||||||||||||||||||||
Regression introduced in release | |||||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||||
Summary | 0037966: JDK 9: fix new BigDecimal related deprecation warnigns | ||||||||||||||||||||
Description | JDK9 deprecated some constants in BigDecimal class related to rounding which are commonly used with the setScale & divide functions. However a simple replacement of the old constants with the new Enum Values is enough to fix this - BigDecimal.ROUND_HALF_UP -> RoundingMode.HALF_UP - BigDecimal.ROUND_HALF_EVEN -> RoundingMode.HALF_EVEN etc.. Note: That requires new import java.math.RoundingMode if not present. Because of the huge number of cases that can be faster + safer fixed half-automatically by doing a.) Search replace of UP,EVEN,CEILING cases of above in all java files b.) Adding missing import when required find . -name *.java | xargs -n1 sed -i 's#BigDecimal.ROUND_HALF_EVEN#RoundingMode.HALF_EVEN#' find . -name *.java | xargs -n1 sed -i 's#BigDecimal.ROUND_HALF_UP#RoundingMode.HALF_UP#' | ||||||||||||||||||||
Steps To Reproduce | Compile with java9 and observe many new eclipse warnings related to BigDecimal | ||||||||||||||||||||
Proposed Solution | |||||||||||||||||||||
Additional Information | |||||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||||
Relationships |
| ||||||||||||||||||||
Attached Files | |||||||||||||||||||||
Issue History | |||||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||||
2018-02-19 11:38 | shuehner | New Issue | |||||||||||||||||||
2018-02-19 11:38 | shuehner | Assigned To | => Retail | ||||||||||||||||||
2018-02-19 11:38 | shuehner | Triggers an Emergency Pack | => No | ||||||||||||||||||
2018-02-19 11:39 | shuehner | Relationship added | blocks 0037083 | ||||||||||||||||||
2018-02-19 11:54 | shuehner | Assigned To | Retail => shuehner | ||||||||||||||||||
2018-02-19 11:54 | shuehner | Review Assigned To | => marvintm | ||||||||||||||||||
2018-02-19 11:55 | hgbot | Checkin | |||||||||||||||||||
2018-02-19 11:55 | hgbot | Note Added: 0102486 | |||||||||||||||||||
2018-02-19 11:56 | hgbot | Checkin | |||||||||||||||||||
2018-02-19 11:56 | hgbot | Note Added: 0102487 | |||||||||||||||||||
2018-02-19 11:56 | hgbot | Status | new => resolved | ||||||||||||||||||
2018-02-19 11:56 | hgbot | Resolution | open => fixed | ||||||||||||||||||
2018-02-19 11:56 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/37b2e747d7324eb18e94e2528bb684a5eff85abb [^] | ||||||||||||||||||
2018-02-19 12:20 | hgbot | Checkin | |||||||||||||||||||
2018-02-19 12:20 | hgbot | Note Added: 0102490 | |||||||||||||||||||
2018-02-19 12:20 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/37b2e747d7324eb18e94e2528bb684a5eff85abb [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/82ad7879d4d1cb730bcca5fb6e7a2ab3c2a730d7 [^] | ||||||||||||||||||
2018-02-26 18:04 | marvintm | Status | resolved => closed | ||||||||||||||||||
2018-02-26 18:04 | marvintm | Fixed in Version | => RR18Q2 | ||||||||||||||||||
2018-04-11 18:16 | gorka_gil | Relationship added | related to 0038337 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|