You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2022/10/20 19:14:00 UTC

[jira] [Resolved] (CALCITE-5339) Use Method#getParameterCount rather than Method#getParameters to get length

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

Julian Hyde resolved CALCITE-5339.
----------------------------------
    Resolution: Fixed

Fixed in [21110741|https://github.com/apache/calcite/commit/21110741ff104cb019b0f9de034845bf47ca8717].

> Use Method#getParameterCount rather than Method#getParameters to get length
> ---------------------------------------------------------------------------
>
>                 Key: CALCITE-5339
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5339
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core, tests
>            Reporter: Sergey Nuyanzin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.33.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The issue with {{Method#getParameters}} is that each time it creates a new array by calling clone. It does not make sense for the cases when only knowledge about number of parameters is required



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