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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0051108
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2022-12-12 16:172022-12-14 10:43
ReportershuehnerView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionfixedFixed in VersionPR23Q1
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

0051108: JDK20 java.net.URL constructors (JDK-8294241) - core

DescriptionSee
https://jdk.java.net/20/ [^] (to download)
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)
Proposed Solution-
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0051110 closedTriage Platform Conn Openbravo ERP JDK20 java.net.URL constructors (JDK-8294241) - platform-conn 
related to defect 0051111 closedRetail Retail Modules JDK20 java.net.URL constructors (JDK-8294241) - pos team 
related to defect 0051112 closedmqueralt Openbravo ERP JDK20 java.net.URL constructors (JDK-8294241) - omni-wms 
blocks feature request 0051107 newTriage Platform Base Openbravo ERP Support JDK20 

-  Notes
(0144543)
hgbot (developer)
2022-12-12 16:22

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/784 [^]
(0144665)
hgbot (developer)
2022-12-14 10:43

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/784 [^]
(0144666)
hgbot (developer)
2022-12-14 10:43

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: b96661917b7de35fc1df0441b4a5d86c23a15ed4
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 14-12-2022 09:39:44
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/b96661917b7de35fc1df0441b4a5d86c23a15ed4 [^]

Fixes ISSUE-51108: Fix JDK20 deprecation warnings related to new URL

JDK20 deprecates using the new URL constructor.
Suggested replacement is to go via new URI(...).toURL() instead.
The URI class is already present since Java 1.4

---
M modules/org.openbravo.service.json/src-test/org/openbravo/service/json/test/JsonRestTest.java
M src-test/src/org/openbravo/test/datasource/DatasourceTestUtil.java
M src-test/src/org/openbravo/test/doc/GenerateEntityModelWiki.java
M src-test/src/org/openbravo/test/webservice/BaseWSTest.java
M src-test/src/org/openbravo/test/webservice/PerformanceTest.java
M src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
M src/org/openbravo/erpCommon/ad_process/HeartbeatProcess.java
M src/org/openbravo/erpCommon/modules/ImportModule.java
M src/org/openbravo/erpCommon/obps/ActivationKey.java
M src/org/openbravo/erpCommon/obps/ActiveInstanceProcess.java
M src/org/openbravo/erpCommon/utility/HttpsUtils.java
---

- Issue History
Date Modified Username Field Change
2022-12-12 16:17 shuehner New Issue
2022-12-12 16:17 shuehner Assigned To => Triage Platform Base
2022-12-12 16:17 shuehner Modules => Core
2022-12-12 16:17 shuehner Triggers an Emergency Pack => No
2022-12-12 16:17 shuehner Relationship added blocks 0051107
2022-12-12 16:22 hgbot Note Added: 0144543
2022-12-12 18:31 shuehner Summary JDK20 java.net.URL constructors (JDK-8294241) => JDK20 java.net.URL constructors (JDK-8294241) - core
2022-12-12 18:32 shuehner Issue cloned 0051110
2022-12-12 18:32 shuehner Relationship added related to 0051110
2022-12-12 18:33 shuehner Issue cloned 0051111
2022-12-12 18:33 shuehner Relationship added related to 0051111
2022-12-12 18:35 shuehner Issue cloned 0051112
2022-12-12 18:35 shuehner Relationship added related to 0051112
2022-12-12 19:02 shuehner Description Updated View Revisions
2022-12-14 10:43 hgbot Resolution open => fixed
2022-12-14 10:43 hgbot Status new => closed
2022-12-14 10:43 hgbot Note Added: 0144665
2022-12-14 10:43 hgbot Fixed in Version => PR23Q1
2022-12-14 10:43 hgbot Note Added: 0144666


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker