You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2023/02/04 23:21:00 UTC

[jira] [Assigned] (GROOVY-10594) Unable to Call StringBuilder.substring() method (JDK17, Groovy 3)

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

Eric Milles reassigned GROOVY-10594:
------------------------------------

    Assignee: Eric Milles

> Unable to Call StringBuilder.substring() method (JDK17, Groovy 3)
> -----------------------------------------------------------------
>
>                 Key: GROOVY-10594
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10594
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Gurpreet
>            Assignee: Eric Milles
>            Priority: Major
>         Attachments: demo.zip
>
>
> I am attaching a sample project that will simply print Hello on console. JDK target is set to 11.
> Project can be run using command
> {code:java}
> ./gradlew clean run
> {code}
> When running project with JDK11 it will successfully print Hello to console
> But when running with JDK17, it fails with error
> {code:java}
> groovy.lang.MissingMethodException: No signature of method: java.lang.StringBuilder.substring() is applicable for argument types: (Integer, Integer) values: [0, 5] {code}



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