-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GStringImpl ClassCastException issue in version 3 #76
Comments
Hmm, this is tricky, from how I understood GString is that groovy should automatically convert it to a String if necessary, so Go with |
@deepy I've seen this a lot with Groovy. No easy fix, I think, other than replacing |
Aargh, maybe we can add a setter for |
This regression is due to an error in the release process. The 2.2.2 release should be a fix-only release and it integrated all the changes applied to the master branch, including the Kotlin rewrite that breaks backward compatibility (see #80). We are going to release a new 2.2.3 version which won't include this issue. But this issue is still valid for the development branch and is probably due to the Kotlin rewrite. |
I added some GStrings in the integration tests in bb4941c to ensure GStrings work as expected and I could not reproduce the issue. Did I forget anything? |
The following works in 2.2.1, but fails in 2.2.2:
A workaround is to use
toString()
:Here's the exception:
Should I just use the
toString()
or do you plan to supportGString
?The text was updated successfully, but these errors were encountered: