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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049433
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2022-05-30 07:562022-09-04 23:50
ReporteralostaleView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionfixedFixed in VersionPR22Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionPR22Q4
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

0049433: JDK19 deprecates Locale(String, String) constructor - core

DescriptionSee https://jdk.java.net/19/release-notes [^]

Deprecation of Locale class constructors (JDK-8282819)
core-libs/java.util:i18n

New Locale.of() factory methods replace deprecated Locale constructors. The factory methods are efficient and reuse existing Locale instances. Locales are also provided by Locale.forLanguageTag() and Locale.Builder.

Steps To ReproduceCompile using JDK19 (tested with ea24):

The constructor Locale(String, String) is deprecated since version 19 HttpSecureAppServlet.java /openbravo/src/org/openbravo/base/secureApp line 1209 Java Problem
The constructor Locale(String, String) is deprecated since version 19 JasperProcess.java /openbravo/src/org/openbravo/erpCommon/ad_process line 80 Java Problem
The constructor Locale(String, String) is deprecated since version 19 ReportManager.java /openbravo/src/org/openbravo/erpCommon/utility/reporting line 229 Java Problem
Proposed SolutionUse locale builder [1] which is available since JDK7

[1] https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Locale.Builder.html [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0049434 closedigor_trebol Localization Pack: Spain JDK19 deprecates Locale(String, String) constructor - splp 
blocks feature request 0049432 newTriage Platform Base Openbravo ERP Support JDK19 

-  Notes
(0139727)
shuehner (administrator)
2022-07-29 13:28

Adding SLA date after checking ALO/SHU
(0140210)
hgbot (developer)
2022-08-17 21:02

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/686 [^]
(0140654)
hgbot (developer)
2022-09-04 23:50

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/686 [^]
(0140655)
hgbot (developer)
2022-09-04 23:50

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 6210cd1b0eee6da1ad250c4f52b0c1faa983acdc
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 04-09-2022 23:35:30
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/6210cd1b0eee6da1ad250c4f52b0c1faa983acdc [^]

Fixes ISSUE-49433: Changed deprecated locale class constructor

Jdk19 deprecates the Locale(String,String) constructor.
New Locale.of convenience classes are only available from Java19
onwards, so use the Locale.Builder() methods instead which are
available sine Java7 already.

---
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
M src/org/openbravo/erpCommon/ad_process/JasperProcess.java
M src/org/openbravo/erpCommon/utility/reporting/ReportManager.java
---

- Issue History
Date Modified Username Field Change
2022-05-30 07:56 alostale New Issue
2022-05-30 07:56 alostale Assigned To => Triage Platform Base
2022-05-30 07:56 alostale Modules => Core
2022-05-30 07:56 alostale Triggers an Emergency Pack => No
2022-05-30 07:59 alostale Proposed Solution updated
2022-05-30 08:03 alostale Relationship added blocks 0049432
2022-05-30 08:05 alostale Issue cloned 0049434
2022-05-30 08:07 alostale Relationship added related to 0049434
2022-05-30 08:08 alostale Summary JDK19 deprecates Locale(String, String) constructor => JDK19 deprecates Locale(String, String) constructor - core
2022-06-23 13:15 alostale Target Version => PR22Q4
2022-07-29 13:28 shuehner Note Added: 0139727
2022-08-17 21:02 hgbot Note Added: 0140210
2022-09-04 23:50 hgbot Note Added: 0140654
2022-09-04 23:50 hgbot Resolution open => fixed
2022-09-04 23:50 hgbot Status new => closed
2022-09-04 23:50 hgbot Fixed in Version => PR22Q4
2022-09-04 23:50 hgbot Note Added: 0140655


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker