...
Issue Tracking System | Supports Comments | Supports Markdown Comments | Supports Attachments | Support Attachments in Comments |
---|---|---|---|---|
Flex ITS |
|
|
|
|
Jira |
|
|
|
|
Azure Boards |
|
|
|
|
GitLab |
|
|
|
|
GitHub |
|
|
|
|
FAQ and Common Issues
class org.codehaus.groovy.runtime.GStringImpl cannot be cast to class java.lang.String
This can occur if you are using Groovy’s GString feature but not calling toString
at the end of it. For example:
Code Block | ||
---|---|---|
| ||
// using ${variable} inside a quoted "" string is what is known as GString in groovy
def message = "Work Item deployed to ${stgexec.getEnvironmentCode()}"
// the following line will produce a GStringImpl cannot be cast error
result.put(workItem.getKey(), message)
// alter it to the following
result.put(workItem.getKey(), message.toString()) |