Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0049433 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2022-05-30 07:56 | 2022-09-04 23:50 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | Triage Platform Base | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | PR22Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | PR22Q4 | |||
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 | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0049433: JDK19 deprecates Locale(String, String) constructor - core | |||||||
Description | See 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 Reproduce | Compile 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 Solution | Use 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 [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||||
|
![]() |
|
(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 --- |
![]() |
|||
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 | OBNetwork customer | => No |
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 | OBNetwork customer | No => OBPS |
2022-07-29 13:28 | shuehner | Note Added: 0139727 | |
2022-08-17 21:02 | hgbot | Merge Request Status | => open |
2022-08-17 21:02 | hgbot | Note Added: 0140210 | |
2022-09-04 23:50 | hgbot | Merge Request Status | open => approved |
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 |