You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Tim Yates (Jira)" <ji...@apache.org> on 2022/09/20 15:51:00 UTC
[jira] [Updated] (GROOVY-10762) Generated getters for wrapper type Boolean is missing isXXX method
[ https://issues.apache.org/jira/browse/GROOVY-10762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Yates updated GROOVY-10762:
-------------------------------
Description:
Inspecting the generated class for the following with 4.0.5
{{class Config}}
{
{{ boolean primitive}}
{{ Boolean wrapper}}
{{}}}
Shows {{getPrimitive}} and {{isPrimitive}} for the {{boolean}} field, but only {{getWrapper}} for the {{Boolean}} field. I was expecting a {{isWrapper}} method to be generated as with Groovy 3.x
Or is this an expected change?
was:
Inspecting the generated class for the following with 4.0.5
{{class Config}}
{{{}}
{{ boolean primitive}}
{{ Boolean wrapper}}
{{}}}
Shows {{getPrimitive}} and {{isPrimitive}} for the {{boolean}} field, but only {{getWrapper}} for the {{Boolean}} field. I was expecting a {{isWrapper}} method to be generated as with Groovy 3.x
Or is this an expected change?
> Generated getters for wrapper type Boolean is missing isXXX method
> ------------------------------------------------------------------
>
> Key: GROOVY-10762
> URL: https://issues.apache.org/jira/browse/GROOVY-10762
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 4.0.5
> Reporter: Tim Yates
> Priority: Major
>
> Inspecting the generated class for the following with 4.0.5
> {{class Config}}
> {
> {{ boolean primitive}}
> {{ Boolean wrapper}}
> {{}}}
> Shows {{getPrimitive}} and {{isPrimitive}} for the {{boolean}} field, but only {{getWrapper}} for the {{Boolean}} field. I was expecting a {{isWrapper}} method to be generated as with Groovy 3.x
> Or is this an expected change?
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)