Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0051111 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | have not tried | 2022-12-12 18:33 | 2023-01-02 07:25 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | Retail | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0051111: JDK20 java.net.URL constructors (JDK-8294241) - pos team | |||||||
Description | See 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 Reproduce | Compile with jdk20 (ea build 23 or higher) in pos modules 1 org.openbravo.dqm.capency 6 org.openbravo.retail.avalaraconnector | |||||||
Proposed Solution | - | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||||
|
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 |