This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There was introduced new API in editor.utilities for string escape. You can see in Bug #223389. There is a class java.debug/src/org/netbeans/modules/java/debug/TreeNode.java that do same as own implementation. You can consider use StringEscapeUtils, or close this as won't fix.