Skip to content

Attempting to save out a long string via BigStringCustomEditor results in an error: "Char at 0 is not a character: <char as int>" #6147

@SirIntellegence

Description

@SirIntellegence

Apache NetBeans version

Apache NetBeans 18

What happened

I went to view a long string and, it shows up properly in the debug window, shortened and all, but using the "save to file" button breaks things.

How to reproduce

See above. TBH, I am mostly making this so I have a bug number to name the branch after.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Mac

JDK

OpenJDK 64-Bit Server VM Temurin-19.0.1+10 (build 19.0.1+10, mixed mode, sharing)

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

I strongly believe it is related to #4123

Are you willing to submit a pull request?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Java[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:bugBug report or fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions