Skip to content

StringBuilder/Buffer support in scripting broken #496

@p-bakker

Description

@p-bakker

I think due to 141dc4f#diff-8f122a374db26c040ca0460f9c5b4541L1015 it is no longer possible to utilize StringBuffer/Builder in JavaScript, as all instances of CharSequence become ConString instances or something.

While I understand that the ConString optimization alleviates the need to use StringBuffer/Builder, it breaks existing code and makes inline Java code clumsy, for example the implementation of the characters method of org.xml.sax.helpers.DefaultHandler now looks something like cellValue += new java.lang.String["(char[])"](chars.slice(start, start + length)), whereas before it looked like cellValue.append(chars, start, length)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions