Openbravo Issue Tracking System - Retail Modules | |||||||||||||
View Issue Details | |||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0037967 | Retail Modules | Web POS | public | 2018-02-19 11:59 | 2018-02-26 18:00 | ||||||||
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 | 0037967: JDK9: Fix new deprecation warnings related to: new Long, new Integer, new Boolean... | ||||||||||||
Description | Java since long time had both: - new Integer(String - new Integer(int) but also - int Integer.parseInt - Integer Integer.valueOf With the latter being preferred (i.e. not constructing new instance for performance etc) JDK9 now deprecated those constructors. This issue fixes all cases in pi of the now deprecated usage by applying simple pattern depending on usage: Special notes: a.) StatusBackgroundProcessScheduler used int as return type of private method getPingInterval but later needs Long object for dal setter. Change method type to return long instead to avoid need to convert type later. b.) POSUtils had type confusion also parsing Long -> changing to int After checking with amo use int type consistently here (should be 'long' enough) | ||||||||||||
Steps To Reproduce | Compile with JDK9 and observe new compilation warnings. | ||||||||||||
Proposed Solution | |||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Relationships |
| ||||||||||||
Attached Files | |||||||||||||
Issue History | |||||||||||||
Date Modified | Username | Field | Change | ||||||||||
2018-02-19 11:59 | shuehner | New Issue | |||||||||||
2018-02-19 11:59 | shuehner | Assigned To | => shuehner | ||||||||||
2018-02-19 11:59 | shuehner | Triggers an Emergency Pack | => No | ||||||||||
2018-02-19 11:59 | shuehner | Relationship added | blocks 0037083 | ||||||||||
2018-02-19 12:03 | hgbot | Checkin | |||||||||||
2018-02-19 12:03 | hgbot | Note Added: 0102488 | |||||||||||
2018-02-19 12:04 | shuehner | Status | new => scheduled | ||||||||||
2018-02-19 12:07 | hgbot | Checkin | |||||||||||
2018-02-19 12:07 | hgbot | Note Added: 0102489 | |||||||||||
2018-02-19 12:07 | hgbot | Status | scheduled => resolved | ||||||||||
2018-02-19 12:07 | hgbot | Resolution | open => fixed | ||||||||||
2018-02-19 12:07 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ee1e56342da5f900e82b3134b38c33166aed7671 [^] | ||||||||||
2018-02-19 12:07 | shuehner | Review Assigned To | => marvintm | ||||||||||
2018-02-26 18:00 | marvintm | Status | resolved => closed | ||||||||||
2018-02-26 18:00 | marvintm | Fixed in Version | => RR18Q2 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|