Gurpreet created GROOVY-10594:
---------------------------------

             Summary: 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
         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