Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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
./gradlew clean run
When running project with JDK11 it will successfully print Hello to console
But when running with JDK17, it fails with error
groovy.lang.MissingMethodException: No signature of method: java.lang.StringBuilder.substring() is applicable for argument types: (Integer, Integer) values: [0, 5]
Attachments
Attachments
Issue Links
- is related to
-
GROOVY-6653 StackOverflow Exception when calling super.method when extending java class
- Closed
-
GROOVY-10109 IllegalAccessError with package-access base class
- Closed
-
GROOVY-10136 [JDK16] Failed to find `public` method derived from `package` super class
- Closed
-
GROOVY-10429 StringBuilder misses setLength method in Java17
- Closed