You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Sergey Nuyanzin (Jira)" <ji...@apache.org> on 2023/06/03 12:23:00 UTC

[jira] [Resolved] (CALCITE-5746) Support JDK 19

     [ https://issues.apache.org/jira/browse/CALCITE-5746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Nuyanzin resolved CALCITE-5746.
--------------------------------------
    Resolution: Fixed

Fixed in [462f8c3|https://github.com/apache/calcite/commit/462f8c3b7d2a8ef554f4e9848e4b289fc1620543]

> Support JDK 19
> --------------
>
>                 Key: CALCITE-5746
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5746
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Sergey Nuyanzin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.35.0
>
>
> Support JDK 19 in Calcite. Modify history.md and remove calls to deprecated Locale constructors. To be fixed before Calcite 1.35.
> The following deprecation warnings currently occur when compiling under JDK 19:
> {noformat}
> core/src/main/java/org/apache/calcite/util/Util.java:1723: warning: [deprecation] Locale(String) in Locale has been deprecated
>       return new Locale(strings[0]);
>              ^
> core/src/main/java/org/apache/calcite/util/Util.java:1725: warning: [deprecation] Locale(String,String) in Locale has been deprecated
>       return new Locale(strings[0], strings[1]);
>              ^
> core/src/main/java/org/apache/calcite/util/Util.java:1727: warning: [deprecation] Locale(String,String,String) in Locale has been deprecated
>       return new Locale(strings[0], strings[1], strings[2]);
>              ^
> error: warnings found and -Werror specified
> core/src/main/java/org/apache/calcite/sql/parser/SqlParserUtil.java:744: warning: [deprecation] Locale(String) in Locale has been deprecated
>       locale = new Locale(localeParts[0]);
>                ^
> core/src/main/java/org/apache/calcite/sql/parser/SqlParserUtil.java:746: warning: [deprecation] Locale(String,String) in Locale has been deprecated
>       locale = new Locale(localeParts[0], localeParts[1]);
>                ^
> core/src/main/java/org/apache/calcite/sql/parser/SqlParserUtil.java:748: warning: [deprecation] Locale(String,String,String) in Locale has been deprecated
>       locale = new Locale(localeParts[0], localeParts[1], localeParts[2]);
>                ^
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)