Skip to content
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

Maybe use CharSequence instead String in toJSONString? #11

Closed
GoogleCodeExporter opened this issue May 31, 2015 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

In toJSONString:

{{{
...
if(value instanceof String)
...
}}}

maybe use CharSequence:

{{{
...
if(value instanceof CharSequence)
...
}}}

Reason: GString( groovy strings), StringBuilder converted as toString()
without ""

Original issue reported on code.google.com by gkra...@gmail.com on 15 Nov 2009 at 2:15

Attachments:

@GoogleCodeExporter
Copy link
Author

Thanks for the suggestion. But we made a commitment to support JDK from version 
1.2
so we are very reluctant to use the CharSequence from 1.4... You can either 
make a
slight wrapping over GString or convert it to String (via Object.toString()) 
before
putting it to a Map/List.

Thanks.

Original comment by fangyid...@gmail.com on 30 Nov 2009 at 4:21

  • Changed state: WontFix
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant