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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0051111
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorhave not tried2022-12-12 18:332023-01-02 07:25
ReportershuehnerView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0051111: JDK20 java.net.URL constructors (JDK-8294241) - pos team

DescriptionSee
https://jdk.java.net/20/release-notes [^]
https://bugs.openjdk.org/browse/JDK-8294241 [^]
java.net.URL constructors are deprecated (JDK-8294241)


Java 20 deprecates some URL constructors and suggest to go via the URI classes (available since Java 1.4) and convert to URL from there:

https://download.java.net/java/early_access/jdk20/docs/api/java.base/java/net/URL.html#constructor-deprecation [^]

Example:
- final URL connUrl = new URL(completeUrl);
+ final URL connUrl = new URI(completeUrl).toURL();

Steps To ReproduceCompile with jdk20 (ea build 23 or higher)

in pos modules
      1 org.openbravo.dqm.capency
      6 org.openbravo.retail.avalaraconnector
Proposed Solution-
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0051108 closedTriage Platform Base Openbravo ERP JDK20 java.net.URL constructors (JDK-8294241) - core 
blocks feature request 0051107 newTriage Platform Base Openbravo ERP Support JDK20 

-  Notes
(0144554)
shuehner (administrator)
2022-12-12 18:38

[java] 3. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.dqm.capency/src/org/openbravo/dqm/capency/CapencyConnector.java (at line 209)
     [java] return new URL(url.toString());
     [java] ^^^^^^^^^^^^^^^^^^^
     [java] The constructor URL(String) is deprecated since version 20

     [java] 5. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 52)
     [java] URL url = new URL(conf.getUrl() + PING_ENDPOINT);
     [java] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     [java] The constructor URL(String) is deprecated since version 20
     [java] ----------
     [java] 6. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 60)
     [java] URL url = new URL(conf.getUrl() + TAXCODES_ENDPOINT);
     [java] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     [java] The constructor URL(String) is deprecated since version 20
     [java] ----------
     [java] 7. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 68)
     [java] URL url = new URL(conf.getUrl() + ADDRESS_ENDPOINT);
     [java] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     [java] The constructor URL(String) is deprecated since version 20
     [java] ----------
     [java] 8. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 75)
     [java] URL url = new URL(conf.getUrl() + TAX_ENDPOINT);
     [java] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     [java] The constructor URL(String) is deprecated since version 20
     [java] ----------
     [java] 9. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 83)
     [java] URL url = new URL(conf.getUrl() + COMPANIES_ENDPOINT + conf.getCompanyCode()
     [java] + TRANSACTIONS_ENDPOINT + transactionCode + REFUND_ENDPOINT);
     [java] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     [java] The constructor URL(String) is deprecated since version 20
     [java] ----------
     [java] 10. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.retail.avalaraconnector/src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java (at line 92)
     [java] URL url = new URL(conf.getUrl() + TAX_ENDPOINT);
     [java] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     [java] The constructor URL(String) is deprecated since version 20
(0144947)
hgbot (developer)
2022-12-22 20:14

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.avalaraconnector/-/merge_requests/4 [^]
(0144948)
hgbot (developer)
2022-12-22 20:15

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.dqm.capency/-/merge_requests/2 [^]
(0145110)
hgbot (developer)
2023-01-02 07:25

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.dqm.capency [^]
Changeset: 96aee633f8a109f23d41253fbca5a77d07544412
Author: dante.contrera <dante.contrera@smfconsulting.es>
Date: 22-12-2022 19:15:43
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.dqm.capency/-/commit/96aee633f8a109f23d41253fbca5a77d07544412 [^]

Fixed ISSUE-51111: Replaced URL deprecated constructors by URIs class method.

---
M src/org/openbravo/dqm/capency/CapencyConnector.java
---
(0145111)
hgbot (developer)
2023-01-02 07:25

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.dqm.capency/-/merge_requests/2 [^]
(0145112)
hgbot (developer)
2023-01-02 07:25

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.avalaraconnector [^]
Changeset: 9880b40fee24d569ea2a4825357832da67f4f43d
Author: dante.contrera <dante.contrera@smfconsulting.es>
Date: 22-12-2022 16:02:54
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.avalaraconnector/-/commit/9880b40fee24d569ea2a4825357832da67f4f43d [^]

Fixed ISSUE-51111: Replaced URL deprecated constructors by URIs class method.

---
M src/org/openbravo/retail/avalaraconnector/api/AvalaraAPI.java
---
(0145113)
hgbot (developer)
2023-01-02 07:25

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.avalaraconnector [^]
Changeset: 97ff0420a48cd30ae7fa9218dea063f58fe1db90
Author: dante.contrera <dante.contrera@smfconsulting.es>
Date: 22-12-2022 16:39:51
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.avalaraconnector/-/commit/97ff0420a48cd30ae7fa9218dea063f58fe1db90 [^]

Related to ISSUE-51111: Added missing exception.

---
M src/org/openbravo/retail/avalaraconnector/edl/OBAVCODataProcessor.java
---
(0145114)
hgbot (developer)
2023-01-02 07:25

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.avalaraconnector/-/merge_requests/4 [^]

- Issue History
Date Modified Username Field Change
2022-12-12 18:33 shuehner New Issue
2022-12-12 18:33 shuehner Assigned To => Triage Platform Base
2022-12-12 18:33 shuehner Modules => Core
2022-12-12 18:33 shuehner Triggers an Emergency Pack => No
2022-12-12 18:33 shuehner Issue generated from 0051108
2022-12-12 18:33 shuehner Relationship added related to 0051108
2022-12-12 18:34 shuehner Project Openbravo ERP => Retail Modules
2022-12-12 18:34 shuehner Assigned To Triage Platform Base => Retail
2022-12-12 18:34 shuehner Category A. Platform => Web POS
2022-12-12 18:36 shuehner Summary JDK20 java.net.URL constructors (JDK-8294241) - core => JDK20 java.net.URL constructors (JDK-8294241) - pos team
2022-12-12 18:37 shuehner Relationship added blocks 0051107
2022-12-12 18:38 shuehner Note Added: 0144554
2022-12-22 20:14 hgbot Note Added: 0144947
2022-12-22 20:15 hgbot Note Added: 0144948
2023-01-02 07:25 hgbot Resolution open => fixed
2023-01-02 07:25 hgbot Status new => closed
2023-01-02 07:25 hgbot Note Added: 0145110
2023-01-02 07:25 hgbot Note Added: 0145111
2023-01-02 07:25 hgbot Note Added: 0145112
2023-01-02 07:25 hgbot Note Added: 0145113
2023-01-02 07:25 hgbot Note Added: 0145114


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker