How to use stringbuilder in transform #5136
-
I was trying to use the stringbuilder but not having much luck. How do I add strings to the stringbuilder and then read them out? Tried this:
but get and error
|
Beta Was this translation helpful? Give feedback.
Answered by
jonbartels
Apr 14, 2022
Replies: 1 comment
-
Try this:
Poorly worded explanation: The error is because the JS -> Java engine, Rhino, is trying to figure out what to do with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tonygermano
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this:
Poorly worded explanation: The error is because the JS -> Java engine, Rhino, is trying to figure out what to do with
strBuilder
to cast it to astring
type forlogger.info
.strBuilder
has atoString
method but it's also aStringBuilder
object. Rhino is saying it can't figure out what to do, so you have to be explicit.