Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038115Retail ModulesWeb POSpublic2018-03-13 13:192018-03-14 19:29
jarmendariz 
jarmendariz 
normalminorhave not tried
closedfixed 
5
 
RR18Q2 
caristu
No
0038115: JDK 9: Remove newInstance() deprecation warnings
Starting from JDK9, clazz.newInstance() is deprecated in favor of clazz.getDeclaredConstructor().newInstance(). This deprecated method call is present in the following classes:

- MobileKeyAuthenticationManager.java
- OrderLoader.java
Do the replacement mentioned above and take into account that the new method throws a ReflectiveOperationException that should be handled somehow.
No tags attached.
related to defect 0037943 closed jarmendariz Openbravo ERP JDK 9: remove [deprecation] newInstance() in Class warnings 
related to feature request 0037083 closed alostale Openbravo ERP support JDK 9 
Issue History
2018-03-13 13:19jarmendarizNew Issue
2018-03-13 13:19jarmendarizAssigned To => Retail
2018-03-13 13:19jarmendarizTriggers an Emergency Pack => No
2018-03-13 13:20jarmendarizRelationship addedrelated to 0037943
2018-03-13 15:55jarmendarizAssigned ToRetail => jarmendariz
2018-03-13 16:24hgbotCheckin
2018-03-13 16:24hgbotNote Added: 0103201
2018-03-13 16:24hgbotStatusnew => resolved
2018-03-13 16:24hgbotResolutionopen => fixed
2018-03-13 16:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8e5b9f95786d75473e179582a560700b958fb621 [^]
2018-03-13 16:25hgbotCheckin
2018-03-13 16:25hgbotNote Added: 0103203
2018-03-13 16:25hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8e5b9f95786d75473e179582a560700b958fb621 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0dfa32f8a64b11a40eeeb30ceae4c08167f1cba4 [^]
2018-03-13 16:27jarmendarizReview Assigned To => caristu
2018-03-13 16:31caristuRelationship addedrelated to 0037083
2018-03-14 19:29caristuNote Added: 0103253
2018-03-14 19:29caristuStatusresolved => closed
2018-03-14 19:29caristuFixed in Version => RR18Q2

Notes
(0103201)
hgbot   
2018-03-13 16:24   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 8e5b9f95786d75473e179582a560700b958fb621
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Tue Mar 13 16:22:46 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8e5b9f95786d75473e179582a560700b958fb621 [^]

Fixed bug 38115: Remove newInstance() deprecation warning.

This fix removes clazz.newInstance() deprecation in JDK9.

---
M src/org/openbravo/mobile/core/authenticate/MobileKeyAuthenticationManager.java
---
(0103203)
hgbot   
2018-03-13 16:25   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 0dfa32f8a64b11a40eeeb30ceae4c08167f1cba4
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Tue Mar 13 16:23:04 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0dfa32f8a64b11a40eeeb30ceae4c08167f1cba4 [^]

Fixed bug 38115: Remove newInstance() deprecation warning.

This fix removes clazz.newInstance() deprecation in JDK9.

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---
(0103253)
caristu   
2018-03-14 19:29   
Reviewed