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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0051112
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2022-12-12 18:352023-02-23 16:16
ReportershuehnerView Statuspublic 
Assigned Tomqueralt 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0051112: JDK20 java.net.URL constructors (JDK-8294241) - omni-wms

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 omni-wms modules
      1 org.openbravo.warehouse.advancedwarehouseoperations.printing.bartender
Proposed Solution-
TagsNo tags attached.
Attached Files

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

-  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 (manager)
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 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 Note Added: 0146911
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
Powered by Mantis Bugtracker