Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0051112 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] A. Platform | minor | have not tried | 2022-12-12 18:35 | 2023-02-23 16:16 | |||
| Reporter | shuehner | View Status | public | |||||
| Assigned To | mqueralt | |||||||
| 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 | |||||||
| Merge Request Status | approved | |||||||
| Review Assigned To | ||||||||
| OBNetwork customer | No | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0051112: JDK20 java.net.URL constructors (JDK-8294241) - omni-wms | |||||||
| 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 omni-wms modules 1 org.openbravo.warehouse.advancedwarehouseoperations.printing.bartender | |||||||
| Proposed Solution | - | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|||||||||||||||
|
|||||||||||||||
Notes |
|
|
(0144553) shuehner (administrator) 2022-12-12 18:38 |
[java] 14. WARNING in /srv/ci/workspace/mod-simple-ci50.52002/modules/org.openbravo.warehouse.advancedwarehouseoperations.printing.bartender/src/org/openbravo/warehouse/advancedwarehouseoperations/printing/bartender/service/BartenderPrintingService.java (at line 101) [java] HttpURLConnection con = (HttpURLConnection) new URL(url).openConnection(); [java] ^^^^^^^^ [java] The constructor URL(String) is deprecated since version 20 |
|
(0145208) mtaal (viewer) 2023-01-09 14:10 |
https://openbravo.atlassian.net/browse/RM-4486 [^] |
|
(0146911) hgbot (developer) 2023-02-23 12:18 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.printing.bartender/-/merge_requests/2 [^] |
|
(0146920) hgbot (developer) 2023-02-23 16:16 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.printing.bartender [^] Changeset: 97272db0bd7947b96e4b40c83fbaceada0e2b3da Author: Stefan Huehner <stefan.huehner@openbravo.com> Date: 23-02-2023 15:16:33 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.printing.bartender/-/commit/97272db0bd7947b96e4b40c83fbaceada0e2b3da [^] Fixes ISSUE-51112: Fix JDK20 deprecation warnings related to new URL --- M src/org/openbravo/warehouse/advancedwarehouseoperations/printing/bartender/service/BartenderPrintingService.java --- |
|
(0146921) hgbot (developer) 2023-02-23 16:16 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations.printing.bartender/-/merge_requests/2 [^] |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2022-12-12 18:35 | shuehner | New Issue | |
| 2022-12-12 18:35 | shuehner | Assigned To | => Triage Platform Base |
| 2022-12-12 18:35 | shuehner | OBNetwork customer | => No |
| 2022-12-12 18:35 | shuehner | Modules | => Core |
| 2022-12-12 18:35 | shuehner | Triggers an Emergency Pack | => No |
| 2022-12-12 18:35 | shuehner | Issue generated from | 0051108 |
| 2022-12-12 18:35 | shuehner | Relationship added | related to 0051108 |
| 2022-12-12 18:37 | shuehner | Relationship added | blocks 0051107 |
| 2022-12-12 18:38 | shuehner | Note Added: 0144553 | |
| 2022-12-12 18:40 | shuehner | Assigned To | Triage Platform Base => Triage Omni WMS |
| 2022-12-13 21:41 | mtaal | Assigned To | Triage Omni WMS => mqueralt |
| 2023-01-09 14:10 | mtaal | Note Added: 0145208 | |
| 2023-02-23 12:18 | hgbot | Merge Request Status | => open |
| 2023-02-23 12:18 | hgbot | Note Added: 0146911 | |
| 2023-02-23 16:13 | hgbot | Merge Request Status | open => approved |
| 2023-02-23 16:16 | hgbot | Resolution | open => fixed |
| 2023-02-23 16:16 | hgbot | Status | new => closed |
| 2023-02-23 16:16 | hgbot | Note Added: 0146920 | |
| 2023-02-23 16:16 | hgbot | Note Added: 0146921 | |
| Copyright © 2000 - 2009 MantisBT Group |