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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0051679
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Localization Pack: Spain] AEAT 303minorhave not tried2023-02-23 10:222023-02-28 09:35
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0051679: JDK19 deprecates Locale(String, String) constructor - splp

DescriptionThis is essentially older issue 49434 again. As some newly added code in aeat303 module reintroducing that problem again.

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.


     [java] 4. WARNING in /srv/ci/workspace/mod-simple-ci50.52004/modules/org.openbravo.module.aeat303.es/src/org/openbravo/module/aeat303/es/report/v2023/AEAT303Report2023.java (at line 59)
     [java] SimpleDateFormat sdf = new SimpleDateFormat(format, new Locale("es", "ES"));
     [java] ^^^^^^^^^^^^^^^^^^
     [java] The constructor Locale(String, String) is deprecated since version 19
Steps To ReproduceCompile using JDK19 (or 20 now)

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 JDK19 deprecates Locale(String, String) constructor - splp 
caused by feature request 0050829 closedmgonzalezh New Design 303 2023 y siguientes  

-  Notes
(0146906)
shuehner (administrator)
2023-02-23 10:23

CI job which can be used for verification (and seeing the problem now)
https://builds.openbravo.com/view/modules/job/mod-merged-future-stack/ [^]
(0147061)
hgbot (developer)
2023-02-27 18:24

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.aeat303.es/-/merge_requests/23 [^]
(0147091)
hgbot (developer)
2023-02-28 09:35

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.aeat303.es [^]
Changeset: 4724601e69b7e0816cf53459d6104588087baa50
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 28-02-2023 08:35:10
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.aeat303.es/-/commit/4724601e69b7e0816cf53459d6104588087baa50 [^]

Fixes ISSUE-51679: Changed deprecated locale class constructor

---
M src/org/openbravo/module/aeat303/es/report/v2023/AEAT303Report2023.java
---
(0147092)
hgbot (developer)
2023-02-28 09:35

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.aeat303.es/-/merge_requests/23 [^]

- Issue History
Date Modified Username Field Change
2023-02-23 10:22 shuehner New Issue
2023-02-23 10:22 shuehner Assigned To => Jorge Bravo
2023-02-23 10:23 shuehner Relationship added related to 0049434
2023-02-23 10:23 shuehner Relationship added caused by 0050829
2023-02-23 10:23 shuehner Note Added: 0146906
2023-02-23 10:45 hgbot Note Added: 0146909
2023-02-23 10:46 shuehner Note Deleted: 0146909
2023-02-23 10:47 hgbot Note Added: 0146910
2023-02-23 10:47 shuehner Note Deleted: 0146910
2023-02-27 18:24 hgbot Note Added: 0147061
2023-02-28 09:35 hgbot Resolution open => fixed
2023-02-28 09:35 hgbot Status new => closed
2023-02-28 09:35 hgbot Note Added: 0147091
2023-02-28 09:35 hgbot Note Added: 0147092
2023-02-28 09:35 aferraz Assigned To Jorge Bravo => shuehner


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker