[ 
https://issues.apache.org/jira/browse/GROOVY-10594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17526675#comment-17526675
 ] 

Eric Milles commented on GROOVY-10594:
--------------------------------------

{{StringBuilder#substring}} is a public method from the package-private 
superclass {{AbstractStringBuilder}}.  The necessary accommodations have been 
made in Groovy 4.  It is unclear at this time if we will backport to Groovy 3.

> 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
>            Priority: Blocker
>         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.7#820007)

Reply via email to