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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038115
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorhave not tried2018-03-13 13:192018-03-14 19:29
ReporterjarmendarizView Statuspublic 
Assigned Tojarmendariz 
PrioritynormalResolutionfixedFixed in VersionRR18Q2
StatusclosedFix in branchFixed in SCM revision0dfa32f8a64b
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0038115: JDK 9: Remove newInstance() deprecation warnings

DescriptionStarting 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
Steps To ReproduceDo the replacement mentioned above and take into account that the new method throws a ReflectiveOperationException that should be handled somehow.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0037943 closedjarmendariz Openbravo ERP JDK 9: remove [deprecation] newInstance() in Class warnings 
related to feature request 0037083 closedalostale Openbravo ERP support JDK 9 

-  Notes
(0103201)
hgbot (developer)
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 (developer)
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 (developer)
2018-03-14 19:29

Reviewed

- Issue History
Date Modified Username Field Change
2018-03-13 13:19 jarmendariz New Issue
2018-03-13 13:19 jarmendariz Assigned To => Retail
2018-03-13 13:19 jarmendariz Triggers an Emergency Pack => No
2018-03-13 13:20 jarmendariz Relationship added related to 0037943
2018-03-13 15:55 jarmendariz Assigned To Retail => jarmendariz
2018-03-13 16:24 hgbot Checkin
2018-03-13 16:24 hgbot Note Added: 0103201
2018-03-13 16:24 hgbot Status new => resolved
2018-03-13 16:24 hgbot Resolution open => fixed
2018-03-13 16:24 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8e5b9f95786d75473e179582a560700b958fb621 [^]
2018-03-13 16:25 hgbot Checkin
2018-03-13 16:25 hgbot Note Added: 0103203
2018-03-13 16:25 hgbot Fixed in SCM revision http://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:27 jarmendariz Review Assigned To => caristu
2018-03-13 16:31 caristu Relationship added related to 0037083
2018-03-14 19:29 caristu Note Added: 0103253
2018-03-14 19:29 caristu Status resolved => closed
2018-03-14 19:29 caristu Fixed in Version => RR18Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker